Does the validation rule 'valid_url' work? Doesn't with me!!! |
[eluser]danfloun[/eluser]
In my form I am using virtually all the rule sets and they work fine. However 'valid_url' which isn't listed in the help guide does not seem to work for me. It is listed in the /language/english/validation_lang.php file: Code: $lang['valid_url'] = "The %s field must contain a valid URL."; Is this rule not in use? Danny
[eluser]danfloun[/eluser]
Sorry but I have to *BUMP* If anyone can check this out it would be appreciated. Thanks Danny
[eluser]Derek Allard[/eluser]
Although there is an entry in the lang file for it, there is no existing validation rule for valid_url. There's a valid_ip if that's helpful, and on the forums (or maybe the wiki) others have created regular expressions to check for valid urls.
[eluser]danfloun[/eluser]
Cheers Derek, I just didn't want to be wasting time finding the issue if there wasn't one because the rule didn't exist. Thanks
[eluser]Derek Allard[/eluser]
Happy to help. If you end up finding/writing a good one write back to this forum, I'm sure others would be interested! |
Welcome Guest, Not a member yet? Register Sign In |