egturnkey
03-17-2010, 12:21 AM
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
<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
<input type="text" name="1" size="40" maxsize="6">
1- Make it accept only numbers
2- Make it accept only numbers and only 6 digits if less then gives error
for 2nd one
<input type="text" name="2" size="40">
1- Accept only letters with no numbers
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
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
<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
<input type="text" name="1" size="40" maxsize="6">
1- Make it accept only numbers
2- Make it accept only numbers and only 6 digits if less then gives error
for 2nd one
<input type="text" name="2" size="40">
1- Accept only letters with no numbers
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