[phorm] [Phorm:] data validation

  • From: webbbs@xxxxxxxxx
  • To: support@xxxxxxxxx
  • Date: 17 Jan 2004 23:28:02 -0000

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

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

  MESSAGE:  (#3599) data validation 
            <http://www.phorm.com/support/?rev=3599> 
  AUTHOR:   phil 
  DATE:     January 17, 2004 at 6:28 p.m. EST 

Wow, what a great script! Easily the best out there. 

However, I can't work out how to use your method of data validation in 
comparison with written php validation. How can I use a rule file to parse for 
the following field entries: 
------------------------------------------ 
if ($nickname) 
{ 
if ( !eregi ( '(9th )([a-zA-Z0-9]{3,12})', $nickname)) 
exit; 
if (eregi('([!"·$%&/=()?¿;:´.+\<>])',$nickname)) 
exit; 
} 
------------------------------------------- 
'$nickname must start with '9th ' and be followed 
by between three and twelve alpha-numerics', and it 
must not contain any of the specified symbols'. 
------------------------------------------- 

and another one: 

------------------------------------------- 
if ($icq) 
{ 
if (!eregi('([0-9]{5,15})', $icq)) 

exit; 
} 
------------------------------------------- 
'$icq must be a string of between five and fifteen 
numbers. No other characters allowed'. 
------------------------------------------- 

I'm completely new to php (two days), so forgive me if my php is not very 
good, but it is the best way of expressing the kind of parsing that I would 
like phorm to do. However, I have no idea how to make phorm check these kinds 
of strings using the 'critereon' you have listed in the documents. Any help 
you can give me would be fantastic. 

Cheers! 

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

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:] data validation