Geeks Talk

Prepare for your Next Interview




website address validation needed

This is a discussion on website address validation needed within the JavaScript forums, part of the Web Development category; Hi Friends, In my contact us page i am using a mandatory field called website address. I want to check whether the user enter a valid web address or not ...


Go Back   Geeks Talk > Web Development > JavaScript

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 03-21-2007
Contributing Member
 
Join Date: Sep 2006
Location: bangalore, india
Posts: 1,007
Thanks: 0
Thanked 73 Times in 62 Posts
psuresh1982 will become famous soon enough
website address validation needed

Hi Friends,

In my contact us page i am using a mandatory field called website address. I want to check whether the user enter a valid web address or not at the time of submitting the form. Is anybody have a code for this ?

------------------
suresh
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-13-2007
Junior Member
 
Join Date: Aug 2007
Posts: 7
Thanks: 1
Thanked 1 Time in 1 Post
Ammu_R is on a distinguished road
Re: website address validation needed

Hi,
I think the regular expression
/^http:\/\/www\.[a-z]+\.(com)|(org)|(edu)|(net)$/;
will help u..Jst try this..And u can add more into this acc to ur logic....

Quote:
Originally Posted by psuresh1982 View Post
Hi Friends,

In my contact us page i am using a mandatory field called website address. I want to check whether the user enter a valid web address or not at the time of submitting the form. Is anybody have a code for this ?

------------------
suresh
Reply With Quote
Reply

  Geeks Talk > Web Development > JavaScript


Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
IP address timmy PHP 4 4 Weeks Ago 07:06 AM
Credit Card Expiry Date validation for Custom Validator Gopinath1983 JavaScript 1 03-01-2007 03:46 AM
Cube validation Lokesh M Data Warehousing 0 12-14-2006 04:36 AM
Website reference needed norman Windows 1 09-09-2006 04:22 PM


All times are GMT -4. The time now is 04:23 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved