Click to See Complete Forum and Search --> : Order Form Help!!!!!!!!!!!!!!


ahamilton
10-29-2005, 03:10 PM
Good Evening All,

I required assistance with a web form I created. However the problem is that when I select the quanity I want than click calculate total button it returns the proper amount however I need it to include two (2) decimal places. Example....the unit cost for the item is $75.00. I need the total to field to show the total will decimals.

Can anyone help me? I have included the html code below:

<HTML>
<HEAD>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
<meta http-equiv="Content-Language" content="en-us">
<TITLE>Tickets</TITLE>
</HEAD>
<BODY>
<h1><font size="+2">Ticket Order Form</font>
<hr></h1>
<H1><font size="+2">Ticket Order Form</H1>
<TABLE>
<TR>
<TD>
</TD>
<P>
</P>
<TABLE>
<TR>
<TD>
</TD>
<TD>
<strong>NAME & MAILING ADDRESS</strong></TD>
</TR>
<TR>
<TD ALIGN="right">
<EM>First/Last Name</EM></TD>
<TD>
<INPUT TYPE=TEXT NAME="Ordering_Name" SIZE=35>
</TD>
</TR>
<TR>
<TD ALIGN="right">
<EM>Street Address</EM></TD>
<TD>
<INPUT TYPE=TEXT NAME="Ordering_StreetAddress" SIZE=35>
</TD>
</TR>
<TR>
<TD ALIGN="right">
<EM>Address (cont.)</EM></TD>
<TD>
<INPUT TYPE=TEXT NAME="Ordering_Address2" SIZE=35>
</TD>
</TR>
<TR>
<TD ALIGN="right">
<EM>City</EM></TD>
<TD>
<INPUT TYPE=TEXT NAME="Ordering_City" SIZE=35>
</TD>
</TR>
<TR>
<TD ALIGN="right">
<EM>State/Province</EM></TD>
<TD>
<INPUT TYPE=TEXT NAME="Ordering_State" SIZE=35>
</TD>
</TR>
<TR>
<TD ALIGN="right">
<EM>Zip/Postal Code</EM></TD>
<TD>
<INPUT TYPE=TEXT NAME="Ordering_ZipCode" SIZE=12 MAXLENGTH=12>
</TD>
</TR>
<TR>
<TD ALIGN="right">
<EM>Country</EM></TD>
<TD>
<INPUT TYPE=TEXT NAME="Ordering_Country" SIZE=2>
</TD>
</TR>
</TABLE></PRE>
</BLOCKQUOTE>
</FORM>
<P>
Please enter number of Gala Tickets required below:</P></font><font size="+2"><BLOCKQUOTE>
<TABLE>
<TR>
<TD>
<STRONG>QTY</STRONG></TD><td>
<STRONG>&nbsp;&nbsp;&nbsp;&nbsp;PRICE</STRONG></TD><td>
<STRONG>&nbsp;&nbsp;&nbsp;&nbsp;TOTAL</STRONG></td><TR><TD><input type="text" name="q101" size="4" maxlength="4"></TD><TD><b>&nbsp;$75.00 ea.</TD></b></TD><td>&nbsp;$&nbsp;<input disabled type="text" name="t101" size="7" maxlength="9"></TR></td></TABLE><tr><td><p><input type="button" name="calc" value="Calculate Total" onClick="{t101.value= 75.00 * q101.value};YY_CalculateForm('document.order','total','2','#t101')"></td></tr>
</p>




<input type="submit" value="Continue to Secure Payment Form"> <INPUT TYPE=RESET VALUE="Reset Form"> </form></P><TABLE>
<TR>
<TD>

<HR>
<H5>
<br>Copyright © 2005 All rights reserved. <BR>
</H5></BODY></HTML>

:confused:

The Little Guy
10-29-2005, 06:39 PM
are you using any other script? such as javascript? When I copy your code, I don't get anything in the box.

rincewind456
10-30-2005, 04:42 AM
Thats not a form you need an opening <FORM> tag along with the requisite attributes, to start.

LiLcRaZyFuZzY
10-30-2005, 05:19 AM
meaning a method attribute and an action attribute, which will link to a script to process the data

Charles
10-30-2005, 06:00 AM
See http://www.w3.org/TR/html401/interact/forms.html for details.