in reply to How do I make one CGI script send the user to another CGI script?

If the second receiving script can accept variables using the "get" method then you might be able to use location to redirect the browser to the next script.

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";
When using Location is needs to be the first element print.
Also your data will need to be fixedup so that it will pass correctly. I use the following. I'm quoting it here only to indicate the direction to take and hoping someone will post a more proper conversion. I can't speak for this being complete. It just works in a limited situation I'm using.

$passeddata =~ s/([!@#$%^&()_+\n])/sprintf("%%%02x",ord($1))/eg; $passeddata =~ s/\s/+/g;
This kind of solution might work okay for simple confirmation screens, etc.

I'm not too hot on its use for passing large amounts of data and it's certainly not that secure.

Claude