I need a HTML Contact Us form validate

Discussion in 'Getting started' started by alithora, Jun 30, 2011.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Dear Everyone,

    I have hosted www.dubaimirchi.com in discountasp.net and every things is working fine except contact page form validation.

    I am basically a graphic designer, not an asp.net developer or programmer,

    The html form code details are as follows:

    <form action="" method="post" name="form1" class="pricebody" id="form1">
    <p class="bodycopy">Name
    <br />
    <label for="name"></label>
    <input name="name" type="text" id="name" onblur="MM_validateForm('name','','R','Company','','R','phone','','RisNum','email','','RisEmail','comments','','R');return document.MM_returnValue" size="30" maxlength="40" />
    <br />
    <br />
    Company
    <br />
    <input name="Company" type="text" id="Company" size="30" maxlength="40" />
    <br />
    <br />
    Phone<br />
    <label for="phone"></label>
    <input name="phone" type="text" id="phone" size="30" />
    <br />
    <br />
    Email<br />
    <label for="email"></label>
    <input name="email" type="text" id="email" size="30" />
    <br />
    </p>
    <p><span class="bodycopy">Subject</span>:
    <select name="subject" class="bodycopy" id="subject">
    <option>-select-</option>
    <option>Bulk SMS</option>
    <option>2way SMS</option>
    <option>Resellers</option>
    <option>Supports</option>
    </select>
    </p>
    <p class="bodycopy">Comments<br />
    <label for="comments"></label>
    <textarea name="comments" cols="50" rows="5" id="comments"></textarea>
    <br />
    <br />
    <input type="submit" name="submit" id="submit" value="Submit" />
    <input type="reset" name="Reset" id="button" value="Reset" />
    <br />
    </p>
    </form>

    It would be great, if someone can give a guide to validate it

    Thanks

    Ali
     
  2. Where is the rest of the Javascript?
     
  3. I have got this much code only from the Dreamveawer
     
  4. I think you mean DreamWeaver did it for you?.:confused:

    If thats the case, I think you would be best served to look at the DreamWeaver documentation or forum.

    From what I can see, after the user takes focus away from the name field, you call a function to validate the rest of the form. But that function isnt in your post and Im not sure why you would validate every thing else before the user even gets there.

    Assuming I didnt misunderstand you, you might want to try to make dreamweaver "do it again" ;)
     
  5. As i mentioned earlier, I am not programmer, so i need a guideline, please help to live that

    thanks
     
  6. I can provide you with an ASP.NET Contact Page if you want.
     
  7. I think the guidelines how to code such a form can be found at some HTML communities or in HTML manuals. It's all about HTML, so you don't have to be a programmer. Maybe you should try to have this form coded manually, not with DreamWeaver.
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page