cformsII Support Forum
Current User: Guest Login Register
Please consider registering

Search Forums:


 






Post
New Member

nosharara212

9:58 pm June 2, 2009

posts 1

Great Plugin! I am trying to validate a field as URL, to make sure it is in this URL format: "http://" when submitted (if text is inputted it still passes, where we want it to be rejected, and only accepted when it is a URL inputted).


Can this be done ?

Thanks!

Admin

Oliver

Munich, Germany

7:20 am June 4, 2009

posts 5889

regexp, see your Help! page

Guest

nosharara212

6:04 pm June 8, 2009

Just put this under Regular Expression for anyone who needs this to work:

^(http\:\/\/[a-zA-Z0-9_\-]+(?:\.[a-zA-Z0-9_\-]+)*\.[a-zA-Z]{2,4}(?:\/[a-zA-Z0-9_]+)*(?:\/[a-zA-Z0-9_]+\.[a-zA-Z]{2,4}(?:\?[a-zA-Z0-9_]+\=[a-zA-Z0-9_]+)?)?(?:\&[a-zA-Z0-9_]+\=[a-zA-Z0-9_]+)*)$


Thanks Oliver for pointing in the right direction !Laugh

No Tags
Reply to Post


Reply to Topic:
URL Validator?
PLEASE READ THE FAQs FIRST! THANK YOU.

Guest Name (Required):

Guest Email (Required):

NOTE: New Posts are subject to administrator approval before being displayed

Smileys
lol offended sad ??? yell cry frown kiss surprised wink innocent smile oops cool
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
11 + 8
   




About the delicious:days forum

Currently Online:

Shaman

Dflatt

78 Guests

Membership:

There are 800 Members

There have been 2202 Guests

There is 1 Admin

There are 3 Moderators