Hello dear friends
I've been reading more about the following cases and got nothing so it will really helps a lot in my study
let us say, we have form of the following code
Code:<form name="name" method="post" action="index.html"> <input type="text" name="1" size="40" maxsize="6"> <input type="text" name="2" size="40"> </form>
I want someone give me an correct example for the following cases
for 1st one
1- Make it accept only numbersCode:<input type="text" name="1" size="40" maxsize="6">
2- Make it accept only numbers and only 6 digits if less then gives error
for 2nd one
1- Accept only letters with no numbersCode:<input type="text" name="2" size="40">
for both 1 and 2
1- Can't write HTML codes within it
thanks in advance, it will really helps me alot in my study



Reply With Quote
Bookmarks