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 John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Perl Redirect Script

Status
Not open for further replies.

jbarkawi

Programmer
Jul 27, 2005
3
US
Hello,

I am having trouble getting my perl script to redirect to another page. The code is very simple, and is nested within an if statement. It goes something like this:

if(....whatever)
{
print "Location: }

All it does is simply print that on the actual browser, not do anything. I've also tried this as well:

print $query->redirect("
And it simply prints the statement in the browser. I am running Mozilla FireFox latest build.

Thanks in advance for your help.

Joe Barkawi
 
Make sure you are not printing a single thing above this line in your code

print "Location:
And change this line to

Code:
print "Location: [URL unfurl="true"]http://www.site.com/\n\n";[/URL]

Tony
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top