 |
Smarty
The discussions here are for Smarty, a template engine for the PHP programming language. Dedicated server web hosting provided by Guru-host.eu. |
| View previous topic :: View next topic |
| Author |
Message |
Sybux2000 Smarty Rookie
Joined: 27 Feb 2005 Posts: 13
|
Posted: Fri Apr 15, 2005 10:00 pm Post subject: SmartyValidate : how to validate an URL or empty field |
|
|
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 |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7042 Location: Lincoln Nebraska, USA
|
Posted: Sat Apr 16, 2005 5:34 pm Post subject: |
|
|
| yes. see the README that comes with it. |
|
| Back to top |
|
Sybux2000 Smarty Rookie
Joined: 27 Feb 2005 Posts: 13
|
Posted: Sat Apr 16, 2005 10:59 pm Post subject: |
|
|
| The only way I've found is to write a new function. Is that the right one ? |
|
| Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7042 Location: Lincoln Nebraska, USA
|
Posted: Sun Apr 17, 2005 3:44 am Post subject: |
|
|
| Right, there is no URL validator that comes with it. The validator can allow empty values as well. |
|
| Back to top |
|
|
|
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
|