Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Client side versus Server side validation
Message
De
05/11/2001 18:05:32
 
 
À
05/11/2001 17:44:08
Gavin Reid
L & M Marketing Pty Ltd
Frenchs Forest, Australie
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00577678
Message ID:
00577687
Vues:
19
This message has been marked as the solution to the initial question of the thread.
You can do it on the client, and it saves bandwidth and help performance to do so, but you also *must* repeat the checks on the server. In addition to the problem you found, there are two additional areas of concern: (1) The client can disable JavaScript in some browsers; and (2) You can easily hack this technique and submit invalid data (for example by saving the HTML source to a local file and then editing out the JS checks).

-- Randy

>This worked well until I discovered in the backend database that there were some records with mandatory fields missing. I tracked it down to that fact that some older Netscape browsers were ignoring the Javascript. I decided to remove the Javascript and perform the validation on the server side using ASP. This works well, although in my opinion it's not as elegant looking as the Javascript validation.
>
> My question is what do other people do for validation in their web pages?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform