Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding up quanity ..

Status
Not open for further replies.

snowboardr

Programmer
Feb 22, 2002
1,401
PH
Ok i have a price list that is outputed to the screen, some have the option to have multiple quantities.. I need to figure out how to match up the price with the textbox and multiply those, as well as adding up everthing else..

Thanks for any help in advance..
Jason


<%
Do while not rs.eof


<tr bgcolor=&quot;#EEEEEE&quot;>
<td width=&quot;51%&quot;><font size=&quot;2&quot; face=&quot;Verdana, Arial, Helvetica, sans-serif&quot;><%=rs(&quot;o_feature&quot;)%></font></td>
<td width=&quot;28%&quot;><font size=&quot;2&quot; face=&quot;Verdana, Arial, Helvetica, sans-serif&quot;>
<input type=&quot;checkbox&quot; name=&quot;pricecheck&quot; value=&quot;<%=rs(&quot;price&quot;) %>&quot;>
$<%=rs(&quot;price&quot;) %></font></td>
<td width=&quot;21%&quot;><font size=&quot;2&quot; face=&quot;Verdana, Arial, Helvetica, sans-serif&quot;>
<% If rs(&quot;quantity&quot;) = &quot;True&quot; Then Response.Write &quot; x <input type=&quot;&quot;text&quot;&quot; name=&quot; & Chr(34) & StrTick & Chr(34) & &quot; size=&quot;&quot;4&quot;&quot; maxlength=&quot;&quot;6&quot;&quot;>&quot;%>
</font><font face=&quot;Verdana, Arial, Helvetica, sans-serif&quot; size=&quot;2&quot;></font></td>
</tr>
<%
rs.movenext
loop
%>
 
A little more code would help, are you totalling an order from the database or before it is submitted while it is still in form objects? It isn't clear above (no value for your quantity box). Lay it on me :) I've done a couple of these.

-Tarwn (Tarwn@ec.rr.com)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top