For Programmers: Free Programming Magazines  


Home > Archive > PERL CGI Beginners > August 2004 > Need cgi that just sends user to a web page









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Need cgi that just sends user to a web page
Bob Flanagan

2004-07-31, 8:55 am

Greetings. I no longer need a big, complicated perl cgi on my site.
However, it is referenced on other sites. Thus changing the links is not a
possiblity. Instead, I need a cgi that just takes the visitor to a
particular page on my site. for example, www.mysite.com/index.htm. could
somone help by providing the line or two of code that does this? I've tried
what to me appears obvious, but with no result other than an error message.

Thanks in advance,

Bob Flanagan


Rich Grise

2004-08-10, 3:55 am

Bob Flanagan wrote:

> Greetings. I no longer need a big, complicated perl cgi on my site.
> However, it is referenced on other sites. Thus changing the links is not
> a
> possiblity. Instead, I need a cgi that just takes the visitor to a
> particular page on my site. for example, www.mysite.com/index.htm. could
> somone help by providing the line or two of code that does this? I've
> tried what to me appears obvious, but with no result other than an error
> message.
>
> Thanks in advance,
>
> Bob Flanagan


print "Location: http://www.mysite.com/index.htm\n\n";

Cheers!
Rich

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com