I mostly write server side (cause I don't know any better)
<%@ Language=VBScript%> This Server side
I have used this for Client side (again cause I don’t know what I’m doing)
<SCRIPT LANGUAGE="VBScript">
</SCRIPT>
I want to get the results of a Check box on a form but I'm having trouble mixing the modes?
Here is my code so far:
<form method="POST" action="shopping_cart.asp">
<table border="1" width="94%">
<tr>
<td width="13%">Delete</td>
<td width="14%">Part Num</td>
<td width="40%">Description</td>
<td width="6%">Qty</td>
<td width="11%">Price</td>
<td width="17%">Ext Price</td>
<td width="17%">Shipping</td>
</tr>
<%do while not fp_rs3.eof%>
<tr>
<td width="13%">
<p><input type="checkbox" name="C1" value="ON">
<%'If "C1" is checked then delete the part from the shopping cart%>
<%'else if the Quantity is changede update it%>
<% 'other wise work as it is now%>
<td width="14%"><%=fp_rs3("PartNum"%></td>
<td width="40%"><%=fp_rs3("Description"%></td>
<td width="6%"><INPUT TYPE=text NAME="qty1" VALUE=<%=fp_rs3("Qty"%> size="2"></td>
<td width="11%"><%=formatcurrency(fp_rs3("Price")%></td>
<%ExtPrice = fp_rs3("Qty" * fp_rs3("Price"%>
<td width="17%"><%=formatcurrency(ExtPrice)%></td>
<td width="17%"><%=formatcurrency(fp_rs3("Shipping")%></td>
<%Subtotalprice = ExtPrice + fp_rs3("Shipping"%>
<%Totalprice = Totalprice + Subtotalprice%>
</tr>
<%fp_rs3.movenext%>
<%loop%>
</table>
<input type="submit" value="Update" name="Delete">
</form>
----------------------
TIA
DougP, MCP
Visit my WEB site to see how Bar-codes can help you be more productive
<%@ Language=VBScript%> This Server side
I have used this for Client side (again cause I don’t know what I’m doing)
<SCRIPT LANGUAGE="VBScript">
</SCRIPT>
I want to get the results of a Check box on a form but I'm having trouble mixing the modes?
Here is my code so far:
<form method="POST" action="shopping_cart.asp">
<table border="1" width="94%">
<tr>
<td width="13%">Delete</td>
<td width="14%">Part Num</td>
<td width="40%">Description</td>
<td width="6%">Qty</td>
<td width="11%">Price</td>
<td width="17%">Ext Price</td>
<td width="17%">Shipping</td>
</tr>
<%do while not fp_rs3.eof%>
<tr>
<td width="13%">
<p><input type="checkbox" name="C1" value="ON">
<%'If "C1" is checked then delete the part from the shopping cart%>
<%'else if the Quantity is changede update it%>
<% 'other wise work as it is now%>
<td width="14%"><%=fp_rs3("PartNum"%></td>
<td width="40%"><%=fp_rs3("Description"%></td>
<td width="6%"><INPUT TYPE=text NAME="qty1" VALUE=<%=fp_rs3("Qty"%> size="2"></td>
<td width="11%"><%=formatcurrency(fp_rs3("Price")%></td>
<%ExtPrice = fp_rs3("Qty" * fp_rs3("Price"%>
<td width="17%"><%=formatcurrency(ExtPrice)%></td>
<td width="17%"><%=formatcurrency(fp_rs3("Shipping")%></td>
<%Subtotalprice = ExtPrice + fp_rs3("Shipping"%>
<%Totalprice = Totalprice + Subtotalprice%>
</tr>
<%fp_rs3.movenext%>
<%loop%>
</table>
<input type="submit" value="Update" name="Delete">
</form>
----------------------
TIA
DougP, MCP
Visit my WEB site to see how Bar-codes can help you be more productive