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!

Multiple submit procedures in a form

Status
Not open for further replies.

JohnnyT

Programmer
Jul 18, 2001
167
GB
I'm writing a form that allows for editing of text files for posting on a website. I have the form with fields like 'title' and 'body' etc. I want four buttons called 'Update', 'Preview', 'Delete' and 'Create New'.
I can't have four different submit buttons for the one form and, ideally, I want the form info 'posting' back to the script itself to process. Any ideas how I would go about this? Preferably without using Javascript.

Any help is appreciated.

Cheers ;-)
I don't make mistakes, I'm merely beta-testing life.
 
If you are accepting free text, be sure you read up a little on CGI security. Opening pipes or system commands or the like with inputs from the text fields can be dangerous.

you can name your submits just like any other input type, then just check for which one was used.


'hope this helps

If you are new to Tek-Tips, please use descriptive titles, check the FAQs, and beware the evil typo.
 
Cheers for that goBoating, I'll give it a go.

All the best

JT I don't make mistakes, I'm merely beta-testing life.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top