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
==================
Navigation:
[Reply to this message]
|