Multiple submit's on one form

From: Date: Wed, 07 Aug 2002 16:51:17 +0000
Subject: Multiple submit's on one form
Groups: php.general 
Request: Send a blank email to php-general+get-111535@lists.php.net to get a copy of this message
I have a form working well and I need 4 different submit buttons, something like this <form method="POST" action=myphpcode.php> <table border="0" cellpadding="1" bgcolor="#E0DFE3"> ... .. .. .. .. <tr> <td bgcolor="#E0DFE3"> <input type="submit" value="Save" name="B1"></td> <td bgcolor="#E0DFE3"> <input type="submit" value="Back" name="B2"></td> <td bgcolor="#E0DFE3"> <input type="submit" value="Refresh" name="B3"></td> <td bgcolor="#E0DFE3"> <input type="submit" value="Search" name="B4"></td> </tr> </table> </form> </body> </html> I would like to call 4 different php pages according to the one of the 4 buttons pressed. Button B1 will post to myphpcode1.php Button B2 will post to myphpcode2.php Button B3 will post to myphpcode3.php Button B4 will post to myphpcode4.php How can I define that since the form has only one post method?

« previous php.general (#111535) next »