I'm asking people to enter their phone numbers in a form field.
I've figured out how to strip any slashes or other stuff that I don't like that they might have put in there, but I wanna force them to enter their area code.
So...
1)I'm looking for a function that counts the number of characters. and send them an error if they didn't enter my specified amount
2)Next I want to strip the 1 in there but only if it is the first character i.e. remove the 1 from 1-347
but not the 1 from 314
Any ideas?? Thanks
I've figured out how to strip any slashes or other stuff that I don't like that they might have put in there, but I wanna force them to enter their area code.
So...
1)I'm looking for a function that counts the number of characters. and send them an error if they didn't enter my specified amount
2)Next I want to strip the 1 in there but only if it is the first character i.e. remove the 1 from 1-347
but not the 1 from 314
Any ideas?? Thanks