Re: combo box validation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Dave,

In general, you can validate this condition with javascript before to send
the form, and if some errors exist, the form is not submitted.

or validate the conditions in the server side with php.

Gerardo.
www.webseficientes.com.ar


On Mon, Jun 7, 2010 at 2:49 PM, David Mehler <dave.mehler@xxxxxxxxx> wrote:

> Hello,
> I've got a form with two combo boxes, one for the month one for the
> day. Both are required. I've got code that checks the post submission
> to ensure neither is empty. My problem is that if a user does not
> select anything in the combo boxes January first is sent, this i don't
> want. If they haven't selected anything i'd like that to show as an
> error.
> Thanks.
> Dave.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux