Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

SmartyValidate Feature Request (unless it already exists)

 
Post new topic   Reply to topic    Smarty Forum Index -> Add-ons
View previous topic :: View next topic  
Author Message
B00zy
Smarty Rookie


Joined: 19 Jul 2004
Posts: 12

PostPosted: Mon Jul 19, 2004 4:46 am    Post subject: SmartyValidate Feature Request (unless it already exists) Reply with quote

Is it possible to have more than one validation tag for a field?

For example


    * I want to check if the field "FullName" is empty with criteria="notEmpty", if so message="Name cannot be empty"
    * Then check if it's below or above the specified length with="isLength", if so message="Name must be between [min] and [max] length"
    * Then check if it matches a given regex with criteria="isRegExp", if so message="Name must be composed of only letters or numbers"


If this doesn't already exist, that is my feature request Smile
Back to top
View user's profile Send private message
B00zy
Smarty Rookie


Joined: 19 Jul 2004
Posts: 12

PostPosted: Mon Jul 19, 2004 5:32 am    Post subject: Reply with quote

Yes, this already does exist... so the problem is related to my latest post: http://www.phpinsider.com/smarty-forum/viewtopic.php?t=3023
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Add-ons All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP