I have written a little script that a user can be redirected to a url of there choice. Here is what it looks like
<?php
$url = $POST["url"];
if($url==""){
$url=$SERVER["HTTP_REFERER"];
}
elseif(!ereg("http:\/\/",$url)&&!ereg("https:\/\/",$url) &&!ereg("ftp:\/\/",$url)){
$url="http://".$url;
}
header("Location:_$url");
?>
But when the user clicks submit, it come up with a parse error
T_CONSTANT_ENCAPSED_STRING
I have never seen this error, and I can not find a single page out there that can tell me what this error pertains to. It is supposibly on line 3, but I don't see anything wrong with the code. The only thing I can think of is the 'register globals' setting is turned on, and it may interrupt the POST variables. Please Help!
thanx in advance