javascript validation & how to use in php
-
hi i am using php with apachi and mysql with dreamcoder 1. if i am not enter date in my date filed than message incorrect value in my application user can leave this field blank how to do this. 2. i want that user can only input numeric value in my phone filed. 3. email validation and tell me how to use this in php. :-D
-
hi i am using php with apachi and mysql with dreamcoder 1. if i am not enter date in my date filed than message incorrect value in my application user can leave this field blank how to do this. 2. i want that user can only input numeric value in my phone filed. 3. email validation and tell me how to use this in php. :-D
If you want the validation to be done client-side, before the form is submitted, then use JavaScript. If you want the validation to be done server-side, after the form is submitted but before the data is processed, then use PHP. Once you have decided which of these options to use, look on the Internet where you'll find a plethora of examples for both methods. Regards, --Perspx
"I've got my kids brainwashed: You don't use Google, and you don't use an iPod." - Steve Ballmer
"Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen an angry penguin charging at them in excess of 100mph." - Linus Torvalds -
hi i am using php with apachi and mysql with dreamcoder 1. if i am not enter date in my date filed than message incorrect value in my application user can leave this field blank how to do this. 2. i want that user can only input numeric value in my phone filed. 3. email validation and tell me how to use this in php. :-D
Form validation using Javascript is a browser-side function. You aren't really using PHP to do this. At max, PHP is used to generate Javascript calls. This is the code that I use on my sites and it works very well- http://webcheatsheet.com/javascript/form_validation.php[^] Good luck! Ranjit Viswakumar Professional Services Specialist rviswakumar@hostmysite.com HostMySite.com [^]