Reply to Re: Query about empty POST arrays

Your name:

Reply:


Posted by Justin Koivisto on 10/06/05 17:33

chotiwallah wrote:

> Dikkie Dik wrote:
>
>>Thejo wrote:
>>
>>>2. When the user clicks the submit button without entering anything.
>
> then the post array is not empty, the elements just contain empty
> strings. the validation routine of the form data should take care of
> that.

Not true... if the form is made up of all radio buttons and/or
checkboxes (with no default selected) AND the submit button doesn't have
a "name" attribute, $_POST will be empty (as in $_POST=array() type of
empty).

>>Then (if method=post), the submit button itself is ported (it has a name
>>and a value).
>
> careful here, ie does NOT submit the button if the form is submitted
> using the return key.

Most browsers don't because the button wasn't clicked...

--
Justin Koivisto, ZCE - justin@koivi.com
http://koivi.com

[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

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