More multiple submit buttons
November 17th, 2005
Following on from Khalid's previous post on multiple submit buttons, its also worth nothing that you can have multiple submit buttons with the same name attribute, e.g:
So, once the form's been submitted, in PHP the $_POST['action'] var will be set to either Edit or Delete.
Add to del.icio.us
Digg this
Technorati
Related Posts:
- One Form, Multiple Actions
- More on submitting forms
- Email Header Injection in PHP
- File Uploads
- Getting totals in MySQL
Entry Filed under: Other
Leave a Comment
Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
Trackback this post | Subscribe to the comments via RSS Feed