View Single Post
Old 10-26-2007, 12:14 PM   #1 (permalink)
gawnd
DNF Member
 
Last Online: Today 12:42 PM
iTrader: (22)
Join Date: Jul 2007
Posts: 457
DNF$: 1,313
Location: United States
Country:


Jump Script Parse Error

I am going crazy trying to get a simple jump script setup for affiliate links.

I keep getting the following error.
PHP Parse error: parse error, unexpected T_STRING in Line 2

on the following script:

Quote:
<?PHP
if ($o == "l1") {$link = "http://www.example.com";} // Default link
if ($o == "l2") {$link = "http://www.anotherexample.com";}
header("Location: $link"); // Jump to the hiddden URL above
exit();
?>
Anyone have any idea what could be wrong here?
gawnd is online now   Reply With Quote
Sponsored Links