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!

Form Question..

Status
Not open for further replies.

coldfused

Technical User
Jan 27, 2001
2,442
US
Can you make one form button submit to multiple cgi scripts?

I want all the fields except one to goto a formmail processor and the other field which would be the email field to be submitted to a opt in email list whichis run by another script.

I would like to be able to do it all from one script instead of using two forms. We even thought of having them fill everything out for the one form click submit, redirects to a second form with just email field and then ask them to confirm there email address and that one would be sent to the opt in list.

But that might be to much.

Any ideas?

---------------------------------------------
 
Hi mate,

Can you make one form button submit to multiple cgi scripts?

Just combine the two scripts.

We even thought of having them fill everything out for the one form click submit, redirects to a second form with just email field and then ask them to confirm there email address and that one would be sent to the opt in list.

Doing this would mean if the first e-mail was wrong, the submission would still go through. A confirmation of a field should error if the 2 fields don't match, not pass them both.

Hope this helps

Wullie


The pessimist complains about the wind. The optimist expects it to change.
The leader adjusts the sails. - John Maxwell
 
Should have been more specific. Upon hitting continue on the first form it would submit the first set of fields and redirect the user to another page "thank you we have recieved your message page" but instead of that message there would be a confirm your email field which actually would be submitted to another script and then redirected to a real conformation of submission page.

Was just an idea.

As for combining the cgi scripts, Wullie that might be a little over my head. I can manipulate them, but I can not write them.

I guess what I was wondering was if there was a javascript or something that would pass certain fields to one script and others to another.

---------------------------------------------
 
could you submit all the fields but one in the form to formmail -- instead have that one pass through whatever language you are using and post it to a hidden form field then have them enter the email address again and process it
to check if the two match

Sometimes the Answer You Are LOOKING for can be FOUND BY SEARCHING THE FAQ'S @&%$*#!!!
 
Hi mate,

One way I just thought about (Don't know why I didn't before)

You could set a session variable containing the email address on the first script and then pull in that variable on the second.

Hope this helps

Wullie


The pessimist complains about the wind. The optimist expects it to change.
The leader adjusts the sails. - John Maxwell
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top