Thanks so much that has helped greatly. I have now came to another hurdle.
I need to create a new final page. this is basically a confirmation page of whatever the user has inputed into the form.
I need to carry through whatever boxes are checked on a check box and have them presented on a confirmation page and also how much the total will cost will need to be carried through.
Here is the code I have, hopefully you can make some sense of it. it does work for everything I need it to do.
[php]
Stock Market
<FORM NAME="priceForm" method="post" action="goodbye.php" onSubmit="return CheckForm()">
<P/>
<TABLE>
<TR>
<TD></TD>
<TD></TD>
<TD>Price(£)</TD>
</TR>
<TR>
<TD><INPUT TYPE="checkbox" NAME="Markets" ID="Markets1" VALUE="Aviation and Aerospace"
onClick="showPrices(1)" ></INPUT></TD>
<TD>Aviation and Aerospace</TD>
<TD><INPUT TYPE="text" NAME="AviationField" SIZE="5" VALUE="" ></INPUT></TD>
</TR>
<TR>
<TD><INPUT TYPE="checkbox" NAME="Markets" ID="Markets2" VALUE="Banks"
onClick="showPrices(2)"></INPUT></TD>
<TD>Banks</TD>
<TD><INPUT TYPE="text" NAME="BanksField" SIZE="5" VALUE=""></INPUT></TD>
</TR>
<TR>
<TD><INPUT TYPE="checkbox" NAME="Markets" ID="Markets3" VALUE="Construction"
onClick="showPrices(3)"></INPUT></TD>
<TD>Construction</TD>
<TD><INPUT TYPE="text" NAME="ConstructionField" SIZE="5" VALUE=""></INPUT></TD>
</TR>
<TR>
<TD><INPUT TYPE="checkbox" NAME="Markets" ID="Markets4" VALUE="Electronics"
onClick="showPrices(4)"></INPUT></TD>
<TD>Electronics</TD>
<TD><INPUT TYPE="text" NAME="ElectronicsField" SIZE="5" VALUE=""></INPUT></TD>
</TR>
<TR>
<TD><INPUT TYPE="checkbox" NAME="Markets" ID="Markets5" VALUE="Oil and Gas"
onClick="showPrices(5)"></INPUT></TD>
<TD>Oil and Gas</TD>
<TD><INPUT TYPE="text" NAME="OilandGasField" SIZE="5" VALUE=""></INPUT></TD>
</TR>
<TR>
<TD><INPUT TYPE="checkbox" NAME="Markets" ID="Markets6" VALUE="Pharmaceuticals"
onClick="showPrices(6)"></INPUT></TD>
<TD>Pharmaceuticals</TD>
<TD><INPUT TYPE="text" NAME="PharmaceuticalsField" SIZE="5" VALUE=""></INPUT></TD>
</TR>
|
Total: |
|
</FORM>
<HR>
<NOSCRIPT>
Sorry, no scripting support
</NOSCRIPT>
[/php]