a form with two buttons: --- <form action="script.php" method="post"> <input type="submit" name="button" value="option 1" /> <input type="submit" name="button" value="option 2" /> </form> ---
script.php --- if($_POST['button'] == "option 1") { echo "option 1 was clicked"; } elseif($_POST['button'] == "option 2") { echo "option 2 was clicked"; } --- I think there's an issue with what happens if they hit enter (which value get submitted? option1 or option2? But you should be able to do some testing pretty quick on that, and choose the order of the buttons. Everything above is not tested of course. HTH Justin on 06/09/02 5:30 PM, Meltem Demirkus ([EMAIL PROTECTED]) wrote: > Hi, > Can you help me? > I want to send the button name to the another page when that button is > pushed...Is it possible by using type="hidden" or I need to use another way > ...?? > > thanks alot > > meltem demirkus > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php