Hello Guys Can somebody please tell me what the best way of implementing form validation with a mysql/php script is? I need a quick easy solution... Thanks Adam
search on g you will get many scripts http://www.google.ca/search?hl=en&q=form+validation++php&meta= Regards Alex
its better if you use client side validation , means less server load. Usualy javascript do the work.
I'd recommend using a combination of both client-side (Javascript) and server-side (PHP) for a robust solution. Yes, server-side takes server resources, but you have full control of the validation process. Client-side: People can disable their browser's Javascript, especially the malicious folks in your audience. However, for the majority of users, with Javascript validation, the data should be clean and it'll flow through your PHP scripts without alteration. Here are some built-in PHP filters that you may find handy.