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:[EMAIL PROTECTED] http://huzhenghui.51.net ---------------------------------------------------------------------------- "Florian SchäFer" <[EMAIL PROTECTED]> дÈëÏûÏ¢ news:[EMAIL PROTECTED] > 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? > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php