Hi there, I have a small problem with this piece of code, although I've yet to find out why.
If (!$_GET['id']) { header("location: $siteurl/index.php") } else {
Any help will be very much appreciated!
Thanks.
another task for mindreaders 🙁
WHAT IS the problem? what does it / not?
if you are having a parse error, then you are missing a semicolon in the header() part. should be like this:
header("Location: $siteurl/index.php");
edit: ir4z0r, i COMPLETELY agree. 🙂
Hi - thanks for that! 🙂
That's my fault I suppose, just that I thought it was pretty self explanatory at the time since the overall look of the code showed that if there was no id then pass to the correct page.
:o Sorry about that, anyway if I had've re-read it a few times I would have spotted it! My apologies!
Thanks once again,
Chris