CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate:
Form post redirect

 



russelln
Deleted

Nov 16, 2000, 12:38 PM

Post #1 of 4 (259 views)
Form post redirect Can't Post

I'm trying to find an elegant way to redirect a form post in Perl. I've tried the CGI query->redirect(-uri=>'http://somewhere.else/in/movie/land',
-nph=>1);
But it drops the form content in the redirect. My current solution is to rebuild the form and do a form.submit() in the <body onload(). Very crude. Any suggestions? Is there some use of the query object that will allow me to redirect form posts with the content intact?

Thanks.


sleuth
Enthusiast / Moderator

Nov 17, 2000, 2:01 PM

Post #2 of 4 (259 views)
Re: Form post redirect [In reply to] Can't Post

 
Did you try

<meta HTTP-EQUIV="REFRESH" CONTENT=\"2 URL=http://www.site.com/cgi-bin/test.cgi?form_field=value">

Sleuth


russelln
Deleted

Nov 17, 2000, 3:46 PM

Post #3 of 4 (259 views)
Re: Form post redirect [In reply to] Can't Post

Actually, the form is using the POST method and the form content is rather large (much larger than 255 characters (closer to 16k of data), so it cannot be a URL parameter.

Any thoughts on how to redirect POSTed form content?


sleuth
Enthusiast / Moderator

Nov 17, 2000, 4:12 PM

Post #4 of 4 (259 views)
Re: Form post redirect [In reply to] Can't Post

 I see, maybe you could try doing this,

write form data to temp data base named a random genereated number, then pass the number to the other script, and it opens the data base then deletes it.

Sleuth

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives