[phorm] [Phorm:] Re: date validation

  • From: webbbs@xxxxxxxxx
  • To: support@xxxxxxxxx
  • Date: 29 Aug 2004 00:05:36 -0000

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

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

  MESSAGE:  (#4307) Re: date validation 
            <http://www.phorm.com/support/?rev=4307> 
  AUTHOR:   Charles 
  DATE:     August 28, 2004 at 8:05 p.m. EST 

  Reply To: (#4302) Re: date validation 
  Author:   Holotech 
  Date:     August 27, 2004 at 2:23 p.m. EST 

I wanted to use one of the more sophisticated regular expressions that will 
work for m/d/yy, mm/dd/yyyy, mm/d/yy, ect. Plus they can even check for leap 
year stuff. Like the one found here: 

http://www.regexlib.com/REDetails.aspx?regexp_id=504 

when I use the regex from the link it does not work and I'm getting this at 
the top of my phorm_error page: "Warning: ereg(): REG_BADRPT in 
/dir/to/phorm.php on line 1068" 

> If all you want to do is require it to be in m/d/yyyy 
> format, use the REGEX criterion: 

> CRIT: REGEX 
> ARGS: ^[0-9]{1,2}/[0-9]{1,2}/[0-9]{4}$ 

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

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: