|
Posted by Ed Jay on 11/05/49 11:37
"tea-mad brit" <NOSPAMergoyoga@hotmail.com> wrote:
>The last input in my form is hidden.
><input type="hidden" name="required" value="name,email,phone,organization"/>
>I have been out of the loop with writing code for a while. This validates,
>but does not work. I am trying to avoid a user clicking on the send button
>and submitting a blank form. The form goes to a PHP handler and all that
>works fine.
>Any thoughts?
>Thanks
You might try using onsubmit="return somefunction();" and having
somefunction() check the form field(s) for empty. If the form is empty,
return false. If the form isn't empty, return true.
If you want, using innerHTML, you can have somefunction() print an error
message to the screen before returning false..
--
Ed Jay (remove M to respond by email)
[Back to original message]
|