Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Client side versus Server side validation
Message
De
05/11/2001 17:44:08
Gavin Reid
L & M Marketing Pty Ltd
Frenchs Forest, Australie
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Titre:
Client side versus Server side validation
Divers
Thread ID:
00577678
Message ID:
00577678
Vues:
57
Hi All,

I recently developed an app that takes registrations for seminars/events over the web. I was using Javascript such as the following to validate mandatory fields on the web page.
if (mywebpage.Surname.value == "")
{
    alert("Please enter a value for the Surname field.");
    mywebpage.Surname.focus();
    return (false);
}
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?

Thanks,
Gavin...
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform