Results 1 to 2 of 2

Thread: website address validation needed

  1. #1
    Contributing Member
    Join Date
    Sep 2006
    Answers
    962

    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


  2. #2
    Junior Member
    Join Date
    Aug 2007
    Answers
    6

    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



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact