Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jul 2012
    Posts
    25
    Thanks
    3
    Thanked 0 Times in 0 Posts

    html input action through button

    I am using the following form to take input and then set an action
    Code:
     <form action="" method="post">
            <select name="page_option">
            <option value="go1">Go 1</option>
            <option value="go2">Go 2</option>
            </select>
            <input type="submit" value="Change home.php" />
            </form>
    Instead of this I want to have two buttons side by side,one button has text GO1 while other has GO2 and when user click GO1 and GO2 it will serve the same purpose as this above form Also when Go1 button is clicked the page will display below the buttons "GO1 is on" and when Go2 is clicked it will display below "GO2 is on"
    any help ?

  • #2
    Senior Coder
    Join Date
    Sep 2010
    Posts
    2,260
    Thanks
    15
    Thanked 255 Times in 255 Posts
    In your other post on this problem I gave you an alternative method that would allow you to do exactly that, by using get and a web link.

  • Users who have thanked DrDOS for this post:

    ska_defender (07-30-2012)

  • #3
    New Coder
    Join Date
    Jul 2012
    Posts
    25
    Thanks
    3
    Thanked 0 Times in 0 Posts
    OK Thanks


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •