You are here: Re: Problems with form processing: array_key_exists() and while (list($k, $v) = each($arr)) « PHP Programming Language « IT news, forums, messages
Re: Problems with form processing: array_key_exists() and while (list($k, $v) = each($arr))

Posted by Spartacus on 06/21/07 12:34

Toby A Inkster wrote:
> Spartacus wrote:
>
>> Were there any other potential problems with the code I posted? I
>> presume not otherwise you'd have said so.
>
> Not that I noticed. And $v will be "doughnuts", not "Hot Doughnuts".
>

Thanks Toby very much. I've solved the problem by changing to:

array_key_exists( 'moreof', $_POST );

which is the name of my select tag.

I've also changed the value="" in the option tags to be the same as the
key, just to verify it works.

I was getting odd errors even when no such keys existed. I had changed
them all and still I was getting my old ones. Maybe my stupid browser
cached them or something. So I renamed the HTML form and the PHP script
and it worked just fine.

Again thanks for your help.

--
Spartacus

 

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

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