Posted by Juliette on 12/20/05 14:19
Janwillem Borleffs wrote:
> Xanthius wrote:
>
>><?
>>$page = $HTTP_GET_VARS['page'];
>>
>>the probleme does not occur with PHP edition other than 5.x.x
>>
>>Does anyone got an idea?
>>
>
>
> http://www.php.net/error_reporting (info about error levels)
> http://www.php.net/isset (how to test if a var has been set)
>
> Additionally, you should use the super global $_GET instead, see:
>
> http://www.php.net/variables.predefined
>
>
> JW
>
>
A way to avoid the notice:
$page = isset( $_GET['page'] ) ? $_GET['page'] : 'default page name';
Grz, J.
[Back to original message]
|