Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Client side versus Server side validation
Message
From
05/11/2001 17:44:08
Gavin Reid
L & M Marketing Pty Ltd
Frenchs Forest, Australia
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Internet applications
Title:
Client side versus Server side validation
Miscellaneous
Thread ID:
00577678
Message ID:
00577678
Views:
58
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...
Next
Reply
Map
View

Click here to load this message in the networking platform