Is there a way to move the browser window to another page once the perl script is done? Like in javascript there is window.location='index.html'? Also, is there a way to make a perl script execute inline an html doc? Something like this:
Who stole the bananna? <PERL src=cgi-bin/whostole.cgi> did.
Which I want to return:
Who stole the bananna? George did.
All the perl script does is it prints a line. Is there a way HTML can replace <PERL> with George? Like <#echo> can be replaced?
IanKelley
5:08 am on Sep 20, 2004 (gmt 0)
To redirect a user:
print "Location: http://example.site/\n\n";
It's possible to set something up to interpret perl inline but it's more trouble than it's worth and you'd need full root access.
Either learn to use perl's various methods of printing data or switch to PHP.
timster
8:32 pm on Sep 21, 2004 (gmt 0)
Would something like this work?
Who stole the bananna? <!--#include virtual="/cgi-bin/whostole.cgi" --> did.
adni18
1:46 am on Sep 24, 2004 (gmt 0)
Yeah I opened up another post like ^ the one you answered. print "Location: [example.site...] works. Yeah the other topic I opened was replied to like this : "Try <script language=javascript>window.location='http://example.site'</script>"