Try it:
switch($type)
{
case HIRE:
statements;
break;
etc....
default:
echo "In Default";
break;
}
"Cg" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I am testing a var in a switch statement,
> switch($type)
> {
> case "HIRE":
> statements;
> break;
> etc....
> default:
> echo "In Default";
> break;
> }
> I can echo $type directly above the switch statement, confirm it contains
> the string "HIRE", but the switch takes the default every time!!
>
> what is going on??
>
> thanks
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php