PDA

View Full Version : I need a HTML Contact Us form validate


alithora
06-30-2011, 10:04 AM
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','ph one','','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

Chuck
06-30-2011, 11:01 AM
Where is the rest of the Javascript?

alithora
06-30-2011, 11:07 AM
I have got this much code only from the Dreamveawer

Chuck
06-30-2011, 11:24 AM
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" ;)

alithora
07-01-2011, 06:20 AM
As i mentioned earlier, I am not programmer, so i need a guideline, please help to live that

thanks

wisemx
07-01-2011, 08:04 AM
I can provide you with an ASP.NET Contact Page if you want.

Jennie
11-06-2011, 03:36 PM
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.