View Full Version : html input action through button

07-30-2012, 02:39 PM
I am using the following form to take input and then set an action

<form action="" method="post">
<select name="page_option">
<option value="go1">Go 1</option>
<option value="go2">Go 2</option>
<input type="submit" value="Change home.php" />

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 ?

07-30-2012, 03:33 PM
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.

07-30-2012, 09:38 PM
OK Thanks