i have a form and i need to be able to do more things to it than a simple submit. So i would need to be able to have more submit targets ... can it be done?
"i need to be able to do more things to it than a simple submit."
Such as?
A form is a way of collecting information from the user and send it to a script running on the server. The script might do anything with that information, including (but not at all limited to) mail it to somebody.
You can have multiple submit buttons in your form. They'll all do the same thing - send the data to the server - but if you give them different names, the script will know which button was pressed and hence it can be coded to do different things with the data (mail it, store it, send a page, whatever).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.