of course. You always should check in the server, even if javascript is working. You have to protect your data integrity. Sorry I did not make this clear.
The benefit of checking in javascript(which I suspect is enabled in most browsers these days), is that the client gets an instant response for the out of line situation.
Best regards. . . Fred
David Freeman wrote:
> as a general rule of thumb, try to do as much > checking as you can with > JavaScript. For those checks such as "is the field a valid > date", "is > the field numeric" and so on, it is much faster to check on > the client, > than to send the data back to the server and check it there.Except, of course, that you need to check it AGAIN in your php script in case the browser has javascript disabled - because if it's disabled you'll end up with unchecked form data. CYA, Dave
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php