[phorm] [Phorm:] Validation Problem

  • From: webbbs@xxxxxxxxx
  • To: support@xxxxxxxxx
  • Date: 14 Mar 2004 10:18:47 -0000

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

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

  MESSAGE:  (#3868) Validation Problem 
            <http://www.phorm.com/support/?rev=3868> 
  AUTHOR:   David Padilla 
  DATE:     March 14, 2004 at 5:18 a.m. EST 

O.K. I give up. I have been at this for hours checking all options and am left 
with this error when checking variables: 

JS: ValDefs (./examples/volunteerform/templates/rules.txt) 
  vd:REQ ()|first|1| 
  vd:REQ ()|last|1| 
  vd:REQ ()|PHORM_FROM|1| 
  vd:EMAIL ()|PHORM_FROM|1| 
  vd:FLDLEN ()|comments|1| 
Parse error: parse error, expecting `T_VARIABLE' or `'$'' in 
/home/u4/bygeorgecs/html/ottobade/phormFolder/phorm.php(1421) : eval()'d code 
on line 1 

Each of the above fields were left blank. The rules.txt file is properly 
located, and I believe properly set up: 

FILES: 
errorform.html 
### 

RULE: Reqname 
CRIT: REQ 
FFLD: first 
MESG: 
<FONT COLOR=CRIMSON><B> 
<BR>Please enter your First name. 
</B></FONT> 
### 

RULE: Reqlast 
CRIT: REQ 
FFLD: last 
MESG: 
<FONT COLOR=CRIMSON><B> 
Please enter your Last name. 
</B></FONT> 
### 

RULE: Reqemail 
CRIT: REQ 
FFLD: PHORM_FROM 
MESG: 
<FONT COLOR=CRIMSON><B> 
Please enter your Email Address. 
</B></FONT> 
### 

RULE: Validemail 
CRIT: EMAIL 
ARGS: 2 
FFLD: PHORM_FROM 
MESG: 
<FONT COLOR=CRIMSON><B> 
<BR><U>{{email}}</U> is not a valid email address. 
</B></FONT> 
### 

RULE: CommentFieldLength 
CRIT: FLDLEN 
ARGS: 0 1000 = 
FFLD: comments 
MESG: 
This message will never display. The comment field will be silently truncated 
to 1000 if it's longer. 
### 

I have also checked each variable to insure it conformed to proper syntax, as 
suggusted in an earlier post. 

I also set all of the debug variable to see what these might show. I didn't 
see any errors. 

JS: ValDefs (./examples/volunteerform/templates/rules.txt) 
  vd:REQ ()|first|1| 
  vd:REQ ()|last|1| 
  vd:REQ ()|PHORM_FROM|1| 
  vd:EMAIL ()|PHORM_FROM|1| 
  vd:FLDLEN ()|comments|1| 
NS: Open Ack Template ./examples/volunteerform/templates/ack.html. 
NS: Open Responder responder.txt. 
NS: Open Log File textlog.txt. 
JS: Parse Autoresponder responder.txt. 
NS: Autoresponder Attach File bunny6.gif. 
JS: Log to text file textlog.txt. 
JS: Mail Template(s) 
Mail Template ./examples/volunteerform/templates/email.txt 
JS: Ack Template ./examples/volunteerform/templates/ack.html 

I suspect this is simple. I got the widgets code working, and this form is 
similar with the only changes being the addition of fields, which as I said 
earlier, the syntax has been check. 

Out of options. Please advise. 
David 

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

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: