Re: Retrive a ID or Class value from a form input field
| From: | Benjamin Hawkes-Lewis | Date: | Mon, 09 Jun 2008 21:32:37 +0000 |
| Subject: | Re: Retrive a ID or Class value from a form input field | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-275162@lists.php.net to get a copy of this message | ||
Joe Harman wrote:
I was just writing a form validation script... I know that there is ton of them out there... and i know that there are some different methods of doing it... but i want to assign class names to each field like class="req:email"... not sure if that is the right way to do it, but i thought it would make thing neat and tidyAnd these class names could be used on the server for … what? Hopefully, you're not relying on GET and POST requests from (intrinsically untrustworthy) clients to know what data type input should be, as that would be intrinsically insecure. -- Benjamin Hawkes-Lewis