>I need to do an if(condition) load a .html, or load unless(condition).
Try:
print "Location: $url1\n\n" if (condition);
print "Location: $url2\n\n" unless (condition);
>or, in another case, when a certain .cgi is called, have it immediately
>load a new .html.
print "Location: $url\n\n";
>I use an isp service running Apache, and CGI.pm is installed, but there
>is no possibility to install any other modules.
If all your doing is directing the browser to some URL, you shouldn't even
need to worry about using CGI.pm or any other modules.
>I've found in books the following and played with nearly every
>permutation:
>
> #Location: http://www.dmatca6.org;
> #URI: http://www.dmatca6.org;
>
> #$url = "http://www.dmatca6.org";
> #print "Location: $url\n\n";
> #exit;
>
> #print redirect("../index.html");
>
>#header( -Refresh => "1; URL = http://www.dmatca6.org/index.html" );
>#print("<meta http-equiv='refresh' content='1';
>URL='http://www.dmatca6.org'>");
>
>Nothing works. I clearly don't know what I'm doing. It is really
>infuriating not being able to do such a seemingly simple task!
I'm not sure if you're really putting pound sign at the beginning of each
line in your code (like in your email) but that's telling perl those lines
are just comments, so it's not gonna try to execute any code there.
If you're still having problems, send the full script.
HTH
-Dave
--
David Rankin
President, Surf This! Web Design Inc.
Tel: 401.277.9966/877.528.5213
Fax: 603.590.4925
Email: [EMAIL PROTECTED]
http://www.surfthisdesign.com