form validation

wxdqz

New Member
i have done a script but i facing problem with the validation of form can anyone pls tell how to put validation on this script

function e_submit(e_add, e_add02)
{

var e_body = document.e_form.salution.value+","+document.e_form.name.value+","+document.e_form.company.value+","+document.e_form.checkbox.value+","+document.e_form.phone.value+","+document.e_form.email.value;

window.location="mailto:"+e_add+e_add02+"?body="+e_body;
}
//-->
</SCRIPT>

<P>
<FORM name="e_form">
<p>
<INPUT name="emadd" type="hidden" value=http://www.webdeveloper.com/forum/archive/index.php/"[email protected]">
<p>
<p>
<INPUT name="emadd02" type="hidden" value=",[email protected]">
<p>

<p>
<p> Name:
<select name="salution" size="1" id="salution">
<option value="Mr." selected>Mr.</option>
<option value="Miss">Miss</option>
<option value="Mrs.">Mrs.</option>
<option value="Ms.">Ms.</option>
<option value="Dr.">Dr.</option>
<option value="Rev.">Rev.</option></select>
<input name="name" type="text" id="name3">

<p> Company:
<INPUT name="company" type="text" id="company">
</p>

<p> Industry :

<input name="checkbox" type="checkbox" id="checkbox" value="1">
Accounting
<input name="checkbox" type="checkbox" id="checkbox" value="2">
Creative
<input name="checkbox" type="checkbox" id="checkbox" value="3">
Education
<input name="checkbox" type="checkbox" id="checkbox" value="4">
Finance
<input name="checkbox" type="checkbox" id="checkbox" value="5">
Hotel
<input name="checkbox" type="checkbox" id="checkbox" value="6">
Law</p>
</p>
</p>
<p> Phone no:
<INPUT name="phone" type="text" id="phone">
</p>
<p> e-mail :
<INPUT name="email" type="text" id="email">
</p>

<P>
 
Back
Top