Link to home
Start Free TrialLog in
Avatar of desty
desty

asked on

can i go to a script-defined URL?

question: i have a script that defines a URL by inserting information (via variables) into a basic URL form:

http://...../mywebpage/$variable1.html#$variable2

currently all the script does is print the new url on a new page...is there a way to make the script run, make the new url and then -go- to the new URL (without the user doing anything other than initiating the script)?

:) thanks in advance
Avatar of adam923
adam923

instead of print "Content-type: text\html/n/notherstuff";
just do print "Location: http://www.yahoo.com/\n\n";
and then exit the script.
ASKER CERTIFIED SOLUTION
Avatar of jsatterl
jsatterl

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of desty

ASKER

yay! it works! thank you! :) :) :)