Re: Validating forms

From: Date: Tue, 03 Apr 2001 18:56:46 +0000
Subject: Re: Validating forms
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-8191@lists.php.net to get a copy of this message
Do both, javascript and server side validation. Javascript can cut down on unnessary page refreshes. Serverside is the only way to guarentee the results, because of the reasons outlined here. Yes, it's more work, but it will provide a better experience for the end surfer. No? -Joe ""B. van Ouwerkerk"" <bvo@atz.nl> wrote in message news:4.3.2.7.2.20010403141633.00c84240@pop.atz-hosting.nl... > > >It is much more efficient to do that type of validation client-side, using > >Javascript. No > >sense in making another round trip to the server if not necessary. > > True.. but this only works if your visitor has javascript enabled.. the > biggest avantage in serverside scripting IMHO is you can forse things to > happen.. Besides, a visitor with a rather old browser might get bombed with > javascript errors.. > > An if .. then loop will do the same.... but.. serverside. > > Bye, > > > B. > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net > For additional commands, e-mail: php-db-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.db (#8191) next »