Hello all,
I'm new to php, I tried to write a simple code like:
goto=$_GET["url"];
if ($a=$b){
header("location: $goto");
}
else{
echo"something wrong";
exit;
}
Now I try to add another condition under header("location: $goto");
if (empty($goto)){
header("location: http://default.com");
{
I tried this code but didn't work, help please!
Thanks
buddy