The following new message has been posted on Phorm Support Forum at <http://www.phorm.com/support/>. *************************************************************************** MESSAGE: (#2931) Re: phone number validation <http://www.phorm.com/support/?rev=2931> AUTHOR: Holotech DATE: July 2, 2003 at 10:05 a.m. EST Reply To: (#2930) Re: phone number validation Author: Patrick O'Hara Date: July 2, 2003 at 12:31 a.m. EST > // if it doesn't pass your specific requirement > if (!ereg("^[0-9]{3}-[0-9]{3}-[0-9]{4}$", > $phone)) { > // set the phone number to a number that will fail > the vailidation > $phone = "123456789"; > } Actually, you can just use the REGEX criterion. The regex given above should work just fine. *************************************************************************** This is an automatically-generated notice. If you'd like to be removed from the mailing list, please visit Phorm Support Forum at <http://www.phorm.com/support/>, or send your request to webbbs@xxxxxxxxxx If you wish to respond to this message, please post your response directly to the board. Thank you! ------------------------------------------------- You are receiving this message because you are subscribed to the Phorm mailing list. To send messages to the mailing list, simply send email to phorm@xxxxxxxxxxxxx from the address you have subscribed. You may unsubscribe from the list by sending email to phorm-request@xxxxxxxxxxxxx with 'unsubscribe' in the SUBJECT field.