virtualweb has asked for the wisdom of the Perl Monks concerning the following question:
Hi... I have a Form submitting data to a form processing script which shows the results in the browser.
Now I want to send some of the data from this form handler to another script in another URL.
Sinse I have the (print "Content-type: text/html\n\n";) Header up at top in my script
Example:
#!/usr/bin/perl print "Content-type: text/html\n\n"; use CGI qw(:standard); use CGI::Carp (fatalsToBrowser); $query = new CGI;
when I use "Location" as in the example below:
my $url = "http://www.myserver.com/cgi-bin/my_script.cgi?key1=value1&k +ey2=value2&key3=value3"; print "Location: $url\n\n";
it doesnt work
what line of code should i use..??
Thank you
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Send a String to another URL
by thewebsi (Scribe) on May 12, 2011 at 03:52 UTC | |
by virtualweb (Sexton) on May 12, 2011 at 08:26 UTC | |
by thewebsi (Scribe) on May 12, 2011 at 13:57 UTC | |
|
Re: Send a String to another URL
by tospo (Hermit) on May 12, 2011 at 08:30 UTC | |
by virtualweb (Sexton) on May 12, 2011 at 12:33 UTC | |
by tospo (Hermit) on May 12, 2011 at 15:49 UTC |