G
googleid2003
I know nothing about perl, so a friend of mine wrote a cgi script for
me to do a redirect on my website based on user input from a html form
using a variable $userName. The piece of code that does this:
print "Content-type:text/html\n\n";
print "<html><head><meta http-equiv=\"refresh\"
content=\"0;url=$path$userName\"></head><body></body>\n";
What's the pros/cons, if any, or difference between this and the
following:
print "Location: http://www.somesite.com/directory/$userName\n\n";
They seem to do the same thing, and I wonder which is "better".
Thanks,
Mike
me to do a redirect on my website based on user input from a html form
using a variable $userName. The piece of code that does this:
print "Content-type:text/html\n\n";
print "<html><head><meta http-equiv=\"refresh\"
content=\"0;url=$path$userName\"></head><body></body>\n";
What's the pros/cons, if any, or difference between this and the
following:
print "Location: http://www.somesite.com/directory/$userName\n\n";
They seem to do the same thing, and I wonder which is "better".
Thanks,
Mike