Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.
Dedicated server web hosting provided by Guru-host.eu.
SmartyValidate : how to validate an URL or empty field

 
Post new topic   Reply to topic    Smarty Forum Index -> Plugins
View previous topic :: View next topic  
Author Message
Sybux2000
Smarty Rookie


Joined: 27 Feb 2005
Posts: 13

PostPosted: Fri Apr 15, 2005 10:00 pm    Post subject: SmartyValidate : how to validate an URL or empty field Reply with quote

Hi,

All is in the subject ! Is it possible to validate at the same time if the field is empty and if not, if it's an URL (for exemple).

Thx
Back to top
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7042
Location: Lincoln Nebraska, USA

PostPosted: Sat Apr 16, 2005 5:34 pm    Post subject: Reply with quote

yes. see the README that comes with it.
Back to top
View user's profile Send private message Visit poster's website
Sybux2000
Smarty Rookie


Joined: 27 Feb 2005
Posts: 13

PostPosted: Sat Apr 16, 2005 10:59 pm    Post subject: Reply with quote

The only way I've found is to write a new function. Is that the right one ?
Back to top
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7042
Location: Lincoln Nebraska, USA

PostPosted: Sun Apr 17, 2005 3:44 am    Post subject: Reply with quote

Right, there is no URL validator that comes with it. The validator can allow empty values as well.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Plugins 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