[phorm] [Phorm:] Re: phone number validation

  • From: webbbs@xxxxxxxxx
  • To: support@xxxxxxxxx
  • Date: 2 Jul 2003 04:31:35 -0000

The following new message has been posted on Phorm Support Forum at 
<http://www.phorm.com/support/>. 

*************************************************************************** 

  MESSAGE:  (#2930) Re: phone number validation 
            <http://www.phorm.com/support/?rev=2930> 
  AUTHOR:   Patrick O'Hara 
  DATE:     July 2, 2003 at 12:31 a.m. EST 

  Reply To: (#2928) Re: phone number validation 
  Author:   arossphoto 
  Date:     July 1, 2003 at 10:44 p.m. EST 

No worries, 

What you will need to do is something like this in your config file: 

// 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"; 
} 

Regards, 

Patrick O'Hara 
WhitsundayIT 
QLD, Australia 

patrick@xxxxxxxxxxxxxxxx 
www.whitsundayit.com 

*************************************************************************** 

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.

Other related posts: