Re: Poll of sorts: Javascript Form validation or PHP
| From: | Per Jessen | Date: | Sat, 06 Dec 2008 10:47:19 +0000 |
| Subject: | Re: Poll of sorts: Javascript Form validation or PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-284236@lists.php.net to get a copy of this message | ||
Terion Miller wrote:
> I have a huge form to validate and wonder which is better javascript
> validation or php, the page is a php page, I actually put js
> validation on it but then it stopped working (stopped inserting into
> the db) not sure if that had anything to do with it....
> What does everyone prefer?
I don't think it's about the developer preference, it's about the user.
Javascript enables lots of checking at data entry time, and can improve
the overall user experience. If you're not particularly concerned with
the user experience, don't bother with javascript.
/Per Jessen, Zürich