Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jul 2002
    Location
    Detroit MI
    Posts
    40
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Form sent to two different places

    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.

  • #2
    Regular Coder
    Join Date
    Jul 2002
    Location
    London, UK
    Posts
    126
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Is this Matt Wright's FormMail script that you're using? If it is, you can simply comment out this line:
    &return_html;

    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..


  •  

    Posting Permissions

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