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]
|