[phorm] [Phorm:] Phone Validation - still not working

  • From: webbbs@xxxxxxxxx
  • To: support@xxxxxxxxx
  • Date: 9 Jul 2003 23:56:18 -0000

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

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

  MESSAGE:  (#2945) Phone Validation - still not working 
            <http://www.phorm.com/support/?rev=2945> 
  AUTHOR:   April Lougheed 
  DATE:     July 9, 2003 at 7:56 p.m. EST 

Hello Patrick. Phorm is working out so well for me. 

I'm just having a bit of trouble getting the phone validation to work. I've 
read the documention and the posts found by searching for "phone". 

My phone variable name is "Phone". Is this a problem? Do I have to use 
"phonenum" as you have in the documentation? 

I started with these lines in the rules.txt file. 

PHONE»Phone»1 
Please enter a phone number in the format ###-###-#### 
### 

PHONEC»Phone»1 
Please enter your phone number in the format ###-###-#### 
### 

That didn't work so I tried this in my 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"; 

} 

This successfull set the Phone number to 123456789 - but it didn't cause an 
error and the form was processed. 

Any ideas what I can try next? 
Here is the actual PHP code in the form: 

<TD WIDTH="378" CLASS="AdobeSmallBody">*Phone<BR> 
<INPUT NAME="Phone" TYPE="text" ID="Phone" SIZE="40" > 
</TD> 

Thanks! April 

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

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:

  • » [phorm] [Phorm:] Phone Validation - still not working