Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    May 2004
    Posts
    3
    Member #
    6133
    Hi this is my first post so hi to everyone,

    i am trying to create an admin form where if the user clicks on a button they are taken to a specific page.

    if i click on the "View Newsletter Subscriptions" button i want to go to "show_login.html" in my target "main" window.

    if i click on the "Amend Officials Details" button i want to go to "show_login_1.html" in my target "main" window.

    Code:
    <html>
    <head>
        <title>Admin</title>
        <link href="stylesheet.css" rel="stylesheet" />
    </head>
    <body bgcolor="#000066">
        <center>
            <h2>Welcome to the Admin Section 
            </h2>
            <br />
            <br />
            <br />
            <br />
            <input type="button" value="View Newsletter Subscriptions" />&nbsp;<br />
            <br />
            <br />
            <br />
            <br />
            <br />
            <input type="button" value="Amend Officials Details" />
        </center>
    </body>
    </html>
    how do i change the above to change to the required pages

    cheers

    Andy

  2.  

  3. #2
    Senior Member karinne's Avatar
    Join Date
    Dec 2003
    Location
    Aylmer QC Canada
    Posts
    1,607
    Member #
    4335
    Liked
    8 times
    welcome to the forums!

    you don't need a form to do that

    just by using a bit of css you could achive the same thing. do you know css?

    css
    Code:
    .button {
      border: 1px solid #000;
      width: 250px;
      height: 35px;
      margin: 0 0 5px 0;
    }
    
    .button a:link, .button a:visited, .button a:active {
      background-color: #ccc;
      display: block;
      color: #000;
      text-decoration: none;
      padding: 2px
    }
    
    .button a:hover {
      background-color: #333;
      color: #fff;
    }
    html
    Code:
    <div class="button"><a href="show_login.html" target="main">View Newsletter Subscriptions</a></div>
    <div class="button"><a href="show_login_1.html" target="main">Amend Officials Details</a></div>
    there we go... play around with the width and height if you like

    hth
    [a web design portfolio - Currently NOT AVAILABLE for work | web design | Re-coding | PSD-to-HTML]
    I'm also on: virb - facebook - twitter - flickr - del.icio.us

  4. #3
    Senior Member ubunreal's Avatar
    Join Date
    Apr 2002
    Location
    Brisbane
    Posts
    263
    Member #
    62
    Chimp, this DHTML should help you acheive your desired effect:

    <input type="button" value="Browse to www.something.com" onclick="window.navigate('http://www.something.com');">



Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 11:21 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com