Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem using: print "Location: "

Status
Not open for further replies.

bpgillett

Technical User
Sep 23, 2002
3
0
0
US
hi. i use:

$master_firm1_pgy1 = "
if ($FORM{'firm'} eq "firm 1" and $FORM{'pgy'} eq "pgy 1") {print "Location: $master_firm1_pgy1\n\n";}

to direct a user to a certain html page in a frame. rather than loading the page, i just get the printed words of the web adress displayed (i.e. "Location:
does anyone have any suggestions.
thanks,
brian
 
Make sure that you haven't sent a content-type header before you send the location header. The location header must absolutely be the FIRST output you send to the browser, or it won't work.
 
thank you for your help. that indeed was the problem. my script works perfectly now.

with warm regards,

brian
 
thank you for your help. that indeed was the problem. my script works perfectly now.

with warm regards,

brian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top