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 6000

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:
10 + 12
   




About the delicious:days forum

Currently Online:

castvision

93 Guests

Membership:

There are 884 Members

There have been 2244 Guests

There is 1 Admin

There are 3 Moderators




Real Cajun: Rustic Home Cooking from Donald Link's Louisiana

Real Cajun: Rustic Home Cooking from ...
- Donald Link

Mrs. Rowe's Little Book of Southern Pies

Mrs. Rowe's Little Book of Southern Pies
- Mrs. Rowe's Restaurant and Bakery

Bittersweet: Lessons from My Mother's Kitchen

Bittersweet: Lessons from My Mother's...
- Matt McAllester

Favourite Dishes from the Tunku's Kitchen

Favourite Dishes from the Tunku's Kit...
- Y.T.M. Dato' Tunku Mukminah Tunku Mohd. Jiwa

West: The Cookbook

West: The Cookbook
- Jim Tobler

Hummingbird Bakery Cookbook

Hummingbird Bakery Cookbook
- Tarek Malouf

Alvaro's Mamma Toscana: The Authentic Tuscan Cookbook

Alvaro's Mamma Toscana: The Authentic...
- Alvaro Maccioni

The Food & Cooking of Russia: Discover the rich and varied character of Russian cuising, in 60 authentic recipes and 300 glorious photographs (The Food and Cooking of)

The Food & Cooking of Russia: Discove...
- Elena Makhonko

The Oxford Companion to American Food and Drink (Oxford Companion To...)

The Oxford Companion to American Food...
- Andrew F. Smith

Ratio: The Simple Codes Behind the Craft of Everyday Cooking

Ratio: The Simple Codes Behind the Cr...
- Michael Ruhlman

Peri-Peri: The Contrasts & Contradictions of the African Bird's Eye Chilli

Peri-Peri: The Contrasts & Contradict...
-

Our Grannies' Recipes

Our Grannies' Recipes
- Eoin Purcell

Jam It, Pickle It, Cure It: And Other Cooking Projects

Jam It, Pickle It, Cure It: And Other...
- Karen Solomon

Cindy Pawlcyn's Appetizers

Cindy Pawlcyn's Appetizers
- Cindy Pawlcyn

Tacos: 75 Authentic and Inspired Recipes

Tacos: 75 Authentic and Inspired Recipes
- Mark Miller