For Programmers: Free Programming Magazines  


Home > Archive > PERL CGI Beginners > November 2006 > redirect cgi and params









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author redirect cgi and params
dvancott@gmail.com

2006-11-03, 6:55 pm

I am using cgi->redirect to redirect to another page and I wanted to
send param to the new script without adding it to the url and
displaying it in the url address bar. For example instead of showing
http://server/page1.cgi?var1=value1&var2=value2 I want it to say
http://server/page2.cgi

I tried this in my code (from page1),

$cgi = new CGI;
$cgi->param('var1','value1');
$cgi->param('var2','value2');
print $cgi->redirect(-url=>'/page2.cgi',
-target=>"_parent");

But it doesnt seem to work. Anybody know if I can do hide the params?
Thanks

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com