Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

more 'submit' buttons with different functions

Status
Not open for further replies.

ghorr

Programmer
Sep 16, 2002
29
RO
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?

 
ghorr... it all depends on the script you are using, but yes. The submit, are you emailing it to different addresses?

Are you using a CGI formmail or ASP? A little more info on what you are trying to accomplish will help.

When in doubt, deny all terms and defnitions.
 
"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).

-- Chris Hunt
 
aham ... yup ... the different names thingie did the trick.
you'll have to excuse me but HTML is just not my thing.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top