in reply to How do I make one CGI script send the user to another CGI script?
When using Location is needs to be the first element print.my $anotherpage = 'http://www.domain.com/cgi-bin/script.pl'; my $passeddata = "?var1=$data1&var2=$data2"; .... # fixup $passeddata for proper sending print "Location: $anotherpage$passeddata\n\n";
This kind of solution might work okay for simple confirmation screens, etc.$passeddata =~ s/([!@#$%^&()_+\n])/sprintf("%%%02x",ord($1))/eg; $passeddata =~ s/\s/+/g;
I'm not too hot on its use for passing large amounts of data and it's certainly not that secure.
Claude
|
|---|