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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Submitting Multiple Forms

Status
Not open for further replies.

raniweb

Technical User
Apr 26, 2004
66
US
I've been working with this problem for a while and I was wondering is it really possible to have two forms submit into the same table? One form has an insert behavior and the other as an update behavior. Any help about this would be absolutely wonderful. Thank you all in advance!
 
is it really possible to have two forms submit into the same table?"

Huh? What kind of table are you talking about? A database table? An HTML <table> element? If you can explain a little more fully what you're trying to do - and what problems you're having - you might get some help.

-- Chris Hunt
 
raniweb,

We're talking about server side handling of the submitted data form, right? Then I would just add a radio select to choose between insert and update and let your server side script act on this value. Something like :

Code:
<FORM ACTION="DBhandler.php" METHOD="post">
  <INPUT TYPE="Radio" NAME="actionType" VALUE="Insert" CHECKED> Insert <BR>
  <INPUT TYPE="Radio" NAME="actionType" VALUE="Update"> Update
</FORM>

Where DBhandler.php is the name of your server side form handler...

This way, a single form can have two (or more if you like) functions!

Good luck


Jakob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top