Page 1 of 1
Why can't i do this in a control structure
Posted: Mon Oct 14, 2002 12:45 pm
by Little Spy
Code: Select all
elseif ($HTTP_GET_VARSї'sn'] == FALSE) || ($HTTP_GET_VARSї'sn'] == "HTTP://") {
die("Could Not Get ScreenName");
}
this gives me an error why?
Re: Why can't i do this in a control structure
Posted: Mon Oct 14, 2002 1:05 pm
by rev
Little Spy wrote:Code: Select all
elseif ($HTTP_GET_VARSї'sn'] == FALSE) || ($HTTP_GET_VARSї'sn'] == "HTTP://") {
die("Could Not Get ScreenName");
}
this gives me an error why?
Your use of parenthesis and encapsulating your test is not syntactically sound. The edit below should work.
Code: Select all
<?php
if($blah) {
//something
} elseif (($HTTP_GET_VARSї'sn'] == FALSE) || ($HTTP_GET_VARSї'sn'] == "HTTP://")) {
die("Could Not Get ScreenName");
}
?>
Posted: Mon Oct 14, 2002 1:07 pm
by Coco
and the opening one
Posted: Mon Oct 14, 2002 4:39 pm
by hob_goblin
Basically, you can't do
you have to do:
statements like that can only have one set of parenthesis between the if and the { }