JohnnyPolite
MIS
Hello all,
I need to provide form validation checks for an updateable application website that I am constructing. I know how to check for length and in string values, but for some reason I cannot recall how to check for integers.
For example, I need to run a validation on a zip code field just to check in there are 5 digits. Also, I am going to check for SSN numbers, but I am going to segment the field into three fields (3 int, 2 int, 4 int) and then concatenate them through code. I need to check if there are the correct amount of digits in each field.
Also, just to be snazzy, I would like to prohibit the user from entering letters in these fields, but that is not as important.
I know there is probably a tutorial out there that addresses this, but I have not been able to find it. I have found simple validation tutorials, but none that address the integer question.
I appreciate any help in advance. Thank you so much! Even if someone could point me in the right direction of a helpful website or tutorial, I would be very grateful.
Thanks!!!
-JP
I need to provide form validation checks for an updateable application website that I am constructing. I know how to check for length and in string values, but for some reason I cannot recall how to check for integers.
For example, I need to run a validation on a zip code field just to check in there are 5 digits. Also, I am going to check for SSN numbers, but I am going to segment the field into three fields (3 int, 2 int, 4 int) and then concatenate them through code. I need to check if there are the correct amount of digits in each field.
Also, just to be snazzy, I would like to prohibit the user from entering letters in these fields, but that is not as important.
I know there is probably a tutorial out there that addresses this, but I have not been able to find it. I have found simple validation tutorials, but none that address the integer question.
I appreciate any help in advance. Thank you so much! Even if someone could point me in the right direction of a helpful website or tutorial, I would be very grateful.
Thanks!!!
-JP