Re: javascript
| From: | Cranky Kong | Date: | Fri, 07 Mar 2003 14:26:17 +0000 |
| Subject: | Re: javascript | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-138629@lists.php.net to get a copy of this message | ||
I always test the data server side, never on the client.
The set up of the browser can be changed by the client and so a guy whi want
to create problem can disable JS.
On the server, the visitor of your site can not changed the set up...
So you can also check both client side and server side but personnaly I only
test on server side.
A test doesn't take a lot of ressource and it's very quick so...
"James E Hicks III" <jameshicks@noland.com> a écrit dans le message de news:
HKEMKMHAGEDFEDCGPGOFMELIKGAA.jameshicks@noland.com...
> > 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...
>
> Wow, the only safe way to insure data integrity is validating it on the
> server side. Does this means that javascript validations only effect is
> to doubles the developers work?
>
>
>