You are here: Re: Form Require Hidden Input Not Working « HTML « IT news, forums, messages
Re: Form Require Hidden Input Not Working

Posted by Ed Jay on 11/10/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)

 

Navigation:

[Reply to this 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

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