Octavian Rasnita wrote:
I have the following situation where I need to call a html page depending
on.

if($name eq "")
{
   call/display my html page.
}
>
> You can do something like this:
>
> print "Location: http://www.site.com/file.html\n\n";;
>
> Teddy

I don't think that would work by itself. You'd need to return a 206 (not sure) in the header above it. I believe what the OP wants to do can be accomplished with:

use CGI;

my $query = new CGI;

if($query->param('name') eq "") {
  print $query->redirect('http://somewhere.else/');
}

--
Andrew Gaffney
Network Administrator
Skyline Aeronautics, LLC.
636-357-1548


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to