View Full Version : Form sent to two different places

07-20-2002, 06:24 AM
Here is my dilemma:

I have a form that I need to perform two different actions.

I need one value to be posted to a website lets say: https://www.website.com/cgi-bin/purchase

The second value I need to be sent to myself, which I figure I can just FormMail to do.

Where the problem comes to paradise: I am newbie to Perl :(

Have no idea where or how to start.

07-20-2002, 09:49 PM
Is this Matt Wright's FormMail script that you're using? If it is, you can simply comment out this line:

And redirect the user's browser to the website you want with a GET querystring, like so:
print "Location: http://www.website.com/cgi-bin/script.pl?$Form{'name'}";

Should do the trick for you..