|
Posted by Erwin Moller on 05/29/07 17:43
Pablo wrote:
> also this make error
>
> if (!isset($_GET['dbf']))
> {header("Location:http://www.pablo.es");}
>
> why?
Hi,
I don't know why it makes an error.
Most probably because your script makes an error somewhere futher down the
script, because you forgot the exit-command after the header.
Try this:
if (!isset($_GET['dbf'])){
header("Location:http://www.pablo.es");
exit;
}
Remember that PHP can set as many headers as you want, and the script runs
on and on and on.
You must stop it yourself by using exit.
Also, try using brackets {} like I did. It makes the code a lot more
readable. :-)
Good luck.
Regards,
Erwin Moller
Navigation:
[Reply to this message]
|