CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Beginner:
Simple PERL Question



Sep 17, 2000, 1:54 PM

Post #1 of 2 (946 views)
Simple PERL Question Can't Post

Since I just started out with this not long ago, please be nice to me Smile

I have created a working example:

It should show a grey box with the text "Chosen Location",
and then nothing else than that.
In the location-bar, try add ?yahoo after router.cgi .

Now an URL to Yahoo! should appear.
Try the same with ?lycos - and voila.

The problem is, that now when I got this to work,
I wish to take it a step further, and direct my users accordingly
to the Query_String, not just print it.

I tried with print "Location: $variable\n\n";
and a few alternate ways - but it doesn't work.

Anyone can help? Smile



User / Moderator

Sep 18, 2000, 2:26 PM

Post #2 of 2 (947 views)
Re: Simple PERL Question [In reply to] Can't Post

print <<"HEADER";
Status: 302 Moved
Location: http://www.$ENV{'QUERY_STRING'}.com/
Content-Type: text/html

I said <a href="http://www.$ENV{'QUERY_STRING'}.com/">go here</a>, st00pid!


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives