You are here: Re: Undefined Index notices « PHP Programming Language « IT news, forums, messages
Re: Undefined Index notices

Posted by Markus Ernst on 10/13/95 11:50

Cal Lidderdale schrieb:
>
> $list = array (name, address, phone);
> foreach ($list as $item) {
> $$item = isset($_GET["$item"]) ? $_GET["$item"] : false;
> }

Should actually display 3 undefined constant notices... change the use
of quotes, quote strings but not variables:

$list = array ('name', 'address', 'phone');
foreach ($list as $item) {
$$item = isset($_GET[$item]) ? $_GET[$item] : false;
}

> ( I tried to find a animated gif of a sweeping bow - ya know, sometimes
> the internet stinks - How to tie a sweeping bow - No a bow not a bow. ) :-/

I am sorry I am not a native English speaker, and I don't understand
exactly what you mean. Anyway smell is a quite common phenomenon
wherever civilisation happens...

 

Navigation:

[Reply to this 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

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