LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   validating.... (https://www.linuxquestions.org/questions/programming-9/validating-333186/)

javier_ccs 06-13-2005 02:50 PM

validating....
 
hello guys,

im a newbie and i would like to know how can i validate a form to accept only 4 numerical characters....

thanx for any help given....:newbie:

Mara 06-13-2005 03:25 PM

It depends which language you use. Form itself (properties) can be set to accept max 4 characters in a field (depending on the filed type). The validation part (checking if it's numerical or not) must be done later, with Java Script, PHP or any other language.

acid_kewpie 06-13-2005 03:28 PM

would kinda help if you told us anythign at all about what languages your'e using...

javier_ccs 06-14-2005 08:00 AM

thanx all for responding.....

im using php 4 and java script.

i just want that the input field show like a "warning" when an user tries to post the form having entered a number with less than 4 digits (123) in an input field....

i know that it can be validate with java....but i can't seem to find a good ol' example...:)

can u help me???

acid_kewpie 06-15-2005 03:07 AM

there's so much stuff on google... for example http://www.javascriptkit.com/javatutors/form7.shtml

javier_ccs 06-15-2005 08:22 AM

thank you, i'll check it out...


All times are GMT -5. The time now is 04:25 AM.