i keep getting errors in my code saying that i have a bad ‘}’ or ‘{‘ no matter what i change nothinig is working, it’s super easy i know… basically it checks to see if one variable is set, and if not are set it dies, if one is set script continues. Any one have any ideas, im sure im going to hit myself for how simple this is.
php:
$i=0;
if(isset($inet))
{
$i++;
}
elseif(isset($tv))
{
$i++;
}
else(isset($voice))
{
$i++;
}
if(!$i>=1)
{
die("you must choose a service")
}
1 Answer