Validation: Client or Server Side?
I know that php can validate data input before querying to the database
but which is more preferable by the developer or user experience?
validation thru php? or validation thru javascript?
whats your insight about this?
thank you!
anthonyjpv
Junior Poster in Training
97 posts since Oct 2010
Reputation Points: 16
Solved Threads: 7
what ^he^ said
validation solely at the client is useless, information can be spoofed too easily
validation solely at the server is useless, too many reloads for incomplete forms, large amounts of data transfer for no real purpose
combination of clientside, so the form is completely filled, the data is appropriateley formed;, then at the server to validate the data and complete the submission
almostbob
Posting Sensei
3,149 posts since Jan 2009
Reputation Points: 571
Solved Threads: 376
very well said! thanks for all your help mates! thanks a lot!
anthonyjpv
Junior Poster in Training
97 posts since Oct 2010
Reputation Points: 16
Solved Threads: 7