Forums
This topic is locked
validate Faxnumber
Posted 18 Oct 2001 09:46:22
1
has voted
18 Oct 2001 09:46:22 Hans Gelok posted:
Hi, I´m building a page in which you can enter faxnumbers. Problem: I would like to validate the number--> it has to start with a zero and must contain 10 numbers... The Ultradev-validateform extension does alot, but not...
Does anybody know how?
Thanks,
Coach
Replies
Replied 18 Oct 2001 09:52:24
18 Oct 2001 09:52:24 Viktor Farcic replied:
To validate number of characters use:
Len(FaxNumber)
To validate if first number is 0 use:
If Left(FaxNumber, 1) = "0" Then...
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Hi, I´m building a page in which you can enter faxnumbers. Problem: I would like to validate the number--> it has to start with a zero and must contain 10 numbers...
The Ultradev-validateform extension does alot, but not...
Does anybody know how?
Thanks,
Coach
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Len(FaxNumber)
To validate if first number is 0 use:
If Left(FaxNumber, 1) = "0" Then...
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Hi, I´m building a page in which you can enter faxnumbers. Problem: I would like to validate the number--> it has to start with a zero and must contain 10 numbers...
The Ultradev-validateform extension does alot, but not...
Does anybody know how?
Thanks,
Coach
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>