Re: validate + if
| From: | Richard Lynch | Date: | Sun, 24 Feb 2008 03:13:00 +0000 |
| Subject: | Re: validate + if | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-269977@lists.php.net to get a copy of this message | ||
If your "onClick" handler returns true (or is it false?) in JS, the
action won't happen.
Or something like that.
Google for it.
And you still need to validate server-side, as JS is easily bypassed.
On Sat, February 23, 2008 1:01 pm, Emiliano Boragina wrote:
> Hi list!
>
>
>
> I have a form.
>
> I validated it with javascript.
>
> Do the validation, but send the form information.
>
> How can I prevent send the information and stay in the form?
>
> When validate all correctly send the info, but if the form isnt
> complete
> correctly dont send.
>
>
>
> Thanks!
>
>
>
> +
> _
> // Emiliano Boragina _
>
> // Diseño & Comunicación //////////////////
> +
> _
>
> // emiliano.boragina@gmail.com /
> // 15 40 58 60 02 ///////////////////////////
> +
> _
>
>
>
>
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/from/lynch
Yeah, I get a buck. So?