you can use the default: statement as last case in switch, too.

"Jason K Larson" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
> Greetings-
>
> I prefer to check the $_SERVER['REQUEST_METHOD'] before I do anything in a
script that
> operates for both GET and POST methods.  Also, especially for a switch
statement, I'd
> check for the existance of the variable first, you know some sort of
isset() or !is_null()
> test.
>
> Hope that helps.
>
> --
> Jason k Larson
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to