Ugh I'm having such an annoying time with this. I'm a novice when it comes to forms. I admit i stole some code to make a multiple page form, and I am trying to set it up with my cgi bin first before altering the code and customizing it the way I want it. There is supposed to be two parts to the form, the first page you fill out, then you go to a second form to fill out, then that information is supposed to be sent to me and there's a page that reviews everything entered. BUT, the code skips the second form and jumps right to the review page and a lot of the review stuff is actually code. ??? Here's where it's at:
<!-- m --><a class="postlink" href="http://www.waldronforest.com/services.htm">http://www.waldronforest.com/services.htm</a><!-- m -->
click on the form to make it run.
Here's my code:
<html>
<head>
<title>Sample Multiple Page Form</title>
</head>
<body bgcolor="white" text="#000000" link="#0000CC" vlink="#0000CC" alink="#0000CC" marginwidth=0 marginheight=15 topmargin=15 leftmargin=0>
<center><table width=450 bordercolor=black border=1 cellpadding=3 cellspacing=0>
<tr bgcolor="#CC6600">
<td colspan=2><font face="arial" size=2 color="White"><b>
Form Manager allows you to create
multiple page forms that allow you to go back and forth between
pages. Data entered is not lost during this process. Any HTML form
can be created and customized to be processed by Form Manager.
</font>
</td>
</tr>
</table></center>
<p>
<table width=450 align=center>
<tr><td><font face="arial" size=2>Current Date / Time </td><td><font face="arial" size=2>: Monday - February 12th, 2007 - 14:45:00</td></tr>
<tr><td><font face="arial" size=2>Users IP Address</td><td><font face="arial" size=2>: 68.186.117.0</td></tr>
<tr><td><font face="arial" size=2>Users Host Name </td><td><font face="arial" size=2>: 117-186-68-0.dhcp.mdfd.or.charter.com</td></tr>
</table>
<form action="http://www.bluehost.com/bluemail" enctype="multipart/form-data" method="POST">
<input type="hidden" name="sendtoemail" value="[email protected]">
<input type=hidden name="next_page" value="Multiple_Page_b">
<input type=hidden name="required" value="name:Name Required,email:e-Mail Address Required">
<input type=hidden name="current_page" value="Multiple_Page_a">
<input type=hidden name="form" value="2">
<input type=hidden name="start" value="1">
<center>
<table width=450 cellpadding=4>
<tr bgcolor="#CC6600">
<td colspan=2><li> <font face="arial" size=4 color="White"><b>Sample Multiple Page Form - (Page #1)</font>
</td>
</tr>
<tr>
<td colspan=2> <font size=2 face="arial" color=red>
</td>
</tr>
<tr><td><font face="arial" size=2> Your Name: </td><td><input type=text name="name" value="" size=30> </td></tr>
<tr><td><font face="arial" size=2> Email Address:</td><td><input type=text name="email" value="" size=30></td></tr>
<tr><td colspan=2><br><input type="submit" name="next" value="Continue >>"></td></tr>
</table>
</form>
</body>
</html>
How do I fix this?The above HTML is uninteresting without the CGI script. Post that and we can tell you the problem.you really need to look at your code most of what you have in there died and was made depreciated about 10 years ago.
<center> = dead
<font> = dead
all your styling which is in your html is depreciated.
attributes values should always be quoted ""
showing us the HTML is useless and personally i would use a more dynamic language for multipage forms (but then again i'm not a fan of perl)
<!-- m --><a class="postlink" href="http://www.waldronforest.com/services.htm">http://www.waldronforest.com/services.htm</a><!-- m -->
click on the form to make it run.
Here's my code:
<html>
<head>
<title>Sample Multiple Page Form</title>
</head>
<body bgcolor="white" text="#000000" link="#0000CC" vlink="#0000CC" alink="#0000CC" marginwidth=0 marginheight=15 topmargin=15 leftmargin=0>
<center><table width=450 bordercolor=black border=1 cellpadding=3 cellspacing=0>
<tr bgcolor="#CC6600">
<td colspan=2><font face="arial" size=2 color="White"><b>
Form Manager allows you to create
multiple page forms that allow you to go back and forth between
pages. Data entered is not lost during this process. Any HTML form
can be created and customized to be processed by Form Manager.
</font>
</td>
</tr>
</table></center>
<p>
<table width=450 align=center>
<tr><td><font face="arial" size=2>Current Date / Time </td><td><font face="arial" size=2>: Monday - February 12th, 2007 - 14:45:00</td></tr>
<tr><td><font face="arial" size=2>Users IP Address</td><td><font face="arial" size=2>: 68.186.117.0</td></tr>
<tr><td><font face="arial" size=2>Users Host Name </td><td><font face="arial" size=2>: 117-186-68-0.dhcp.mdfd.or.charter.com</td></tr>
</table>
<form action="http://www.bluehost.com/bluemail" enctype="multipart/form-data" method="POST">
<input type="hidden" name="sendtoemail" value="[email protected]">
<input type=hidden name="next_page" value="Multiple_Page_b">
<input type=hidden name="required" value="name:Name Required,email:e-Mail Address Required">
<input type=hidden name="current_page" value="Multiple_Page_a">
<input type=hidden name="form" value="2">
<input type=hidden name="start" value="1">
<center>
<table width=450 cellpadding=4>
<tr bgcolor="#CC6600">
<td colspan=2><li> <font face="arial" size=4 color="White"><b>Sample Multiple Page Form - (Page #1)</font>
</td>
</tr>
<tr>
<td colspan=2> <font size=2 face="arial" color=red>
</td>
</tr>
<tr><td><font face="arial" size=2> Your Name: </td><td><input type=text name="name" value="" size=30> </td></tr>
<tr><td><font face="arial" size=2> Email Address:</td><td><input type=text name="email" value="" size=30></td></tr>
<tr><td colspan=2><br><input type="submit" name="next" value="Continue >>"></td></tr>
</table>
</form>
</body>
</html>
How do I fix this?The above HTML is uninteresting without the CGI script. Post that and we can tell you the problem.you really need to look at your code most of what you have in there died and was made depreciated about 10 years ago.
<center> = dead
<font> = dead
all your styling which is in your html is depreciated.
attributes values should always be quoted ""
showing us the HTML is useless and personally i would use a more dynamic language for multipage forms (but then again i'm not a fan of perl)