Reply to Re: Notice: Undefined index

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация