[PHP] Validating Form input
- Date: Wed, 14 May 2008 21:48:46 -0500
- From: Chris W <2wsxdr5@xxxxxxx>
- Subject: [PHP] Validating Form input
I was wondering what others think of my approach to form validation. I know many use Java script to do various validation. However, since there is no way to be sure the data sent to the server is actually valid, you have to check it in your php code on the server anyway. Granted you don't have to, but if you don't, you are just asking for someone to hack your system, or at the very least screw up your data. So my question is since you have to do a validity check on the server, why bother with the Java script? The only advantage I can see to doing it with Java script is it will cut down on the errors in data that get to the server and then in turn reduce the number for resubmits and keep traffic down a little. However since none of the projects I have worked on are very high traffic sites, that hasn't been much of a concern.
Any thoughts? -- Chris W KE5GIX"Protect your digital freedom and privacy, eliminate DRM, learn more at http://www.defectivebydesign.org/what_is_drm"
Ham Radio Repeater Database. http://hrrdb.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Follow-Ups:
- Re: [PHP] Validating Form input
- From: tedd
- Re: [PHP] Validating Form input
- From: Adam Richardson
- Re: [PHP] Validating Form input
- From: Robert Cummings
- Re: [PHP] Validating Form input
- From: Dan Joseph
- Re: [PHP] Validating Form input
- From: Yi Wang
- Re: [PHP] Validating Form input
- Prev by Date: Re: [PHP] Good HTML parser needed
- Next by Date: Re: [PHP] Good HTML parser needed
- Previous by thread: [PHP] Variable Scope from child to parent
- Next by thread: Re: [PHP] Validating Form input
- Index(es):