Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: how to re-post data to another CGI?

by thatguy (Parson)
on Aug 08, 2001 at 07:21 UTC ( [id://102964]=note: print w/replies, xml ) Need Help??


in reply to how to re-post data to another CGI?

you could do a redirect to the second script and have that script look for the info. If you do that then you can have a redirect that works in the headers:
if ($foo eq "successfull") { print $query->redirect(-location=>'http://example.com/cgi-bin/seco +ndscript.pl?foo1=$foo1&foo2=$foo2',-nph=>1); exit; }

or in the body (the Content-type is only needed if you havent printed your headers)

print "Content-type: text/html\n\n"; print <META HTTP-EQUIV=refresh CONTENT="0;URL=http://example.com/cgi-b +in/secondscript.pl?foo1=$foo1&foo2=$foo2">

-p

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://102964]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (8)
As of 2024-04-23 12:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found