2 forms with same submit

Results 1 to 2 of 2

Thread: 2 forms with same submit

  1. #1
    Rob Guest

    Default 2 forms with same submit

    Is there a way to submit 2 forms going to 2 seperate pages with same submit button.<BR><BR>Thanks,<BR><BR>ROb

  2. #2
    Jason Miller Guest

    Default RE: 2 forms with same submit

    Sure, just have the form processing occur in the same script (aciton="&#060;%= request.serverVariables("Script_Name") %&#062;") and then response.redirect to your new page when you&#039ve got a satisfactory amount of processing done (but before anything is sent back to the user).<BR><BR>if request.form("submit") = "Submit Form" then<BR>(your submit needs to be named &#039submit&#039)<BR> if request.form("keyVarFromForm1") &#060;&#062; "" then abc()<BR> if request.form("keyVarFromForm2") &#060;&#062; "" then def()<BR>end if<BR><BR>function abc()<BR> &#039 Process form however<BR> response.redirect "abc.asp"<BR>end function

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts