Reply to Re: Initialize form values to NULL

Your name:

Reply:


Posted by Jerry Stuckle on 08/24/07 02:28

Oberon wrote:
> I am looking to initialize form values to NULL prior to the client filling
> in the form.
>
> I would like to do this using an array by putting all of the form variables
> into it and setting them using a foreach() loop to NULL.
>
> Is there a way to do this using PHP 5.1.2?
>
>

HTML does not recognize null values. A form object always has a value,
although that value may be an empty string.

Some types of form objects (i.e. checkboxes) will only send their value
of they are checked. Others (i.e. text fields) will send an empty
string if there is nothing in the field.

PHP cannot change this behavior.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

[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

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