Hello!
I would like to know what would be the best way to do this:
I have a form with three parts
1 - General Information about visitor
2 - Information about his business
3 - Detailes about his equipment
I would like to give the visitor the choice to fill and submit one, two or all three parts
I know there is a way to do it in JS but I do not know how.
Any help would be more than welcome. Thank you anticipated!
Here is the HTML code I have so far: (I believe the changes have to be made in the tags marked with red)
<html>
<body>
<table width="800" border="0" align="center" cellpadding="0" cellspacing="0" >
<tr>
<td bgcolor="#FFE6DF">
<form name="form1" method="post" action="#nogo">
<input name="submitted" type="hidden" value="1">
<input name="submit_type" type="hidden" value="0">
<table width="800" border="0" cellspacing="0" cellpadding="0" height="96">
<tr>
<td width="800" align="left" valign="top" bgcolor="#FFFFCC" height="17">
<font size="5">
<b>First Part </b></font>(basic info)<br>
<input name="fname" type="text" id="fname" size="40" maxlength="50" value=""><br>
<input name="lname" type="text" id="lname" size="40" maxlength="50" value=""><br>
<input name="phone1" type="text" id="phone1" size="3" maxlength="3" value="">-
<input name="phone2" type="text" id="phone2" size="3" maxlength="3" value="">-
<input name="phone3" type="text" id="phone3" size="4" maxlength="4" value="">
<input name="pref" type="radio" checked value="phone" >preferred contact<br>
<input name="email" type="text" id="email" size="30" maxlength="50" value="">
<input name="pref" type="radio" value="email"> preferred contact<br>
<input name="submit1" type="submit" value="Submit Part 1" width="98" height="34" size="20"><br>or go to the next section </td></tr></table>
<table width="800" border="0" cellspacing="0" cellpadding="0" height="268">
<tr>
<td width="800" align="left" valign="middle" bgcolor="#E1FFE1" height="158">
<font size="5"><b>
Second Part</b></font>(detailed info)<br>
<input name="1" type="text" id="1" size="40" maxlength="50" value=""><br>
<input name="2" type="text" id="2" size="3" maxlength="3" value=""><br>
<input name="3" type="text" id="3" size="20" maxlength="40" value=""><br>
<input name="4" type="text" id="4" size="40" maxlength="50" value=""><br>
<input name="5" type="text" id="5" size="3" maxlength="3" value=""><br>
<input name="6" type="text" id="6" size="3" maxlength="3" value=""><br>
<input name="7" type="text" id="7" size="10" maxlength="20" value=""><br>
<input name="submit1&2" type="submit" value="Submit Pat 1 & 2" width="98" height="34" size="20"><br>or go to the next section</td></tr></table>
<table width="800" border="0" align="center" cellpadding="0" cellspacing="0" height="278">
<tr>
<td align="left" valign="top" height="164" width="800">
<font size="5"><b>Third part</b></font>(specific info)<br>
<input type="text" name="8" id="8" size="40" maxlength="50" value=""><br>
<input type="text" name="9" id="9" size="40" maxlength="50" value=""><br>
<input type="text" name="10" id="10" size="40" maxlength="50" value=""><br>
<input type="text" name="11" id="11" size="40" maxlength="50" value=""><br>
<input type="text" name="12" id="12" size="40" maxlength="50" value=""><br><label>
<input type="radio" name="13" value="Raw" checked> a</label><label>
<input type="radio" name="13" value="edited"> b</label><label>
<input type="radio" name="13" value="DVD"> c</label> <br><label>
<input type="radio" name="14" value="Yes" checked>Yes</label><label>
<input type="radio" name="14" value="No">No</label><label> <br>
<input type="text" name="15" id="15" size="40" maxlength="40" value=""><br></label><label>
<input type="radio" name="16" value="Yes" checked>Yes</label> <label>
<input type="radio" name="16" value="No">No<br></label>
<textarea name="additinfo" cols="75" rows="5" id="additinfo" size="20"></textarea><br>
<input type="submit" name="submitall" value="Submit All" width="98" height="34" size="20"></td></tr></table>
</form>
</table>
</body>
</html>
I would like to know what would be the best way to do this:
I have a form with three parts
1 - General Information about visitor
2 - Information about his business
3 - Detailes about his equipment
I would like to give the visitor the choice to fill and submit one, two or all three parts
I know there is a way to do it in JS but I do not know how.
Any help would be more than welcome. Thank you anticipated!
Here is the HTML code I have so far: (I believe the changes have to be made in the tags marked with red)
<html>
<body>
<table width="800" border="0" align="center" cellpadding="0" cellspacing="0" >
<tr>
<td bgcolor="#FFE6DF">
<form name="form1" method="post" action="#nogo">
<input name="submitted" type="hidden" value="1">
<input name="submit_type" type="hidden" value="0">
<table width="800" border="0" cellspacing="0" cellpadding="0" height="96">
<tr>
<td width="800" align="left" valign="top" bgcolor="#FFFFCC" height="17">
<font size="5">
<b>First Part </b></font>(basic info)<br>
<input name="fname" type="text" id="fname" size="40" maxlength="50" value=""><br>
<input name="lname" type="text" id="lname" size="40" maxlength="50" value=""><br>
<input name="phone1" type="text" id="phone1" size="3" maxlength="3" value="">-
<input name="phone2" type="text" id="phone2" size="3" maxlength="3" value="">-
<input name="phone3" type="text" id="phone3" size="4" maxlength="4" value="">
<input name="pref" type="radio" checked value="phone" >preferred contact<br>
<input name="email" type="text" id="email" size="30" maxlength="50" value="">
<input name="pref" type="radio" value="email"> preferred contact<br>
<input name="submit1" type="submit" value="Submit Part 1" width="98" height="34" size="20"><br>or go to the next section </td></tr></table>
<table width="800" border="0" cellspacing="0" cellpadding="0" height="268">
<tr>
<td width="800" align="left" valign="middle" bgcolor="#E1FFE1" height="158">
<font size="5"><b>
Second Part</b></font>(detailed info)<br>
<input name="1" type="text" id="1" size="40" maxlength="50" value=""><br>
<input name="2" type="text" id="2" size="3" maxlength="3" value=""><br>
<input name="3" type="text" id="3" size="20" maxlength="40" value=""><br>
<input name="4" type="text" id="4" size="40" maxlength="50" value=""><br>
<input name="5" type="text" id="5" size="3" maxlength="3" value=""><br>
<input name="6" type="text" id="6" size="3" maxlength="3" value=""><br>
<input name="7" type="text" id="7" size="10" maxlength="20" value=""><br>
<input name="submit1&2" type="submit" value="Submit Pat 1 & 2" width="98" height="34" size="20"><br>or go to the next section</td></tr></table>
<table width="800" border="0" align="center" cellpadding="0" cellspacing="0" height="278">
<tr>
<td align="left" valign="top" height="164" width="800">
<font size="5"><b>Third part</b></font>(specific info)<br>
<input type="text" name="8" id="8" size="40" maxlength="50" value=""><br>
<input type="text" name="9" id="9" size="40" maxlength="50" value=""><br>
<input type="text" name="10" id="10" size="40" maxlength="50" value=""><br>
<input type="text" name="11" id="11" size="40" maxlength="50" value=""><br>
<input type="text" name="12" id="12" size="40" maxlength="50" value=""><br><label>
<input type="radio" name="13" value="Raw" checked> a</label><label>
<input type="radio" name="13" value="edited"> b</label><label>
<input type="radio" name="13" value="DVD"> c</label> <br><label>
<input type="radio" name="14" value="Yes" checked>Yes</label><label>
<input type="radio" name="14" value="No">No</label><label> <br>
<input type="text" name="15" id="15" size="40" maxlength="40" value=""><br></label><label>
<input type="radio" name="16" value="Yes" checked>Yes</label> <label>
<input type="radio" name="16" value="No">No<br></label>
<textarea name="additinfo" cols="75" rows="5" id="additinfo" size="20"></textarea><br>
<input type="submit" name="submitall" value="Submit All" width="98" height="34" size="20"></td></tr></table>
</form>
</table>
</body>
</html>