Thread: reloading a cgi script
Results 1 to 8 of 8
02-12-2004, 07:21 PM #1
reloading a cgi script
how can i reload a cgi script or jump to another page after printing a "Content-type: text/html" header? thx
02-13-2004, 01:21 PM #2
I am no Perl expert, but have used headers a lot.
have you tried writing a header of "Location: http://www.wherever.com" ?
02-13-2004, 03:42 PM #3
supposedly there is a rule that that only works if it is before eh Content-type header. But I can try it and see. Nope, it doesn't work, but thx.
Last edited by vizskywalker; 02-13-2004 at 03:47 PM.
02-13-2004, 05:22 PM #4
02-14-2004, 07:21 PM #5
that would be something like "document.reload" right?
02-15-2004, 01:34 PM #6
location.href='whatever.html' would probably be better. If you use a JS refresh it will resubmit any form data and possibly create an infinite loop.
02-15-2004, 01:44 PM #7
02-15-2004, 05:40 PM #8