Re: value submit button

From: Date: Fri, 01 Aug 2003 04:36:15 +0000
Subject: Re: value submit button
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-157875@lists.php.net to get a copy of this message
You can get the button value use code below: <?php echo $_POST[submit];?> <form method="post"> <input type="submit" name="submit" value="submit1"> <input type="submit" name="submit" value="submit2"> </form> -- ---------------------------------------------------------------------------- Hu Zhenghui IBM Certified Solutions Expert IBM WebSphere Studio <New Intranet Series - Intranet DIY> ISBN 7-5606-1163-X <Flash MX Tutorial for Training> ISBN 7-900107-51-7 mailto:webmaster@huzhenghui.51.net http://huzhenghui.51.net ---------------------------------------------------------------------------- "Florian SchäFer" <florian.schaefer@talknet.de> дÈëÏûÏ¢ news:8f3tei$6cs$1@va.php.net... > Hallo out there, > > i hava an document, with one form and two Submit buttons. > How can i check in the target document wich button is pressed? > tried something like if ($submit == 'xxx') . > anyone has a hint? > >

« previous php.general (#157875) next »