Re: javascript
| From: | Cranky Kong | Date: | Fri, 07 Mar 2003 14:29:59 +0000 |
| Subject: | Re: javascript | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-138631@lists.php.net to get a copy of this message | ||
Yes but if the fields are well filled, you will check all 2 times, the first
time on the client side to know that the fields are filled.
And a second time on server side to check the data before inserting them in
a DB for examples...
So why make 2 tests, if only one is good.
The reloading of the page is very fast.
"Marek Kilimajer" <kilimajer@webglobe.sk> a écrit dans le message de news:
3E68AABB.2070906@webglobe.sk...
If the user is disabled, the user will be bothered to wait till the page
reloads, sure there MUST be server side check
Cranky Kong wrote:
>And what are you doing if the javascript is not enabled in the browser of
>the client ???
>There will be no verification and the user can enter what he want in the
>field of your form....
>And it's a bit dangerous for your DB if your insert data in a DB...
>
>
>"Marek Kilimajer" <kilimajer@webglobe.sk> a écrit dans le message de news:
>3E68A6F9.8020008@webglobe.sk...
>
>
>>Not bothering the user to wait till the next page loads
>>
>>Liam Gibbs wrote:
>>
>>
>>
>>>>If you want to validate form data before sending it, javascript is the
>>>>choise.
>>>>
>>>>
>>>>
>>>>
>>>Yeah, before sending it. Just wondering what the advantage is in
>>>
>>>
>validating
>
>
>>>before sending.
>>>
>>>
>>>
>>>
>>>
>>>
>
>
>
>
>