M
MikeR
I need to ensure that if a quantity is entered for a product, then a finish and a
package is also selected for that product.
If a quantity is not entered for a product, no finish or package should be selected.
If no quantities are entered, the form should not submit.
PRS is the product recordset. The loop can be 1 to n times.
I think this is gonna take client side scripting, and I've googled 'til I need
glasses, but no joy. And yeah, I know it's a lousy table layout, but pretty isn't
the priority right now.
Thanks,
Mike R
<form method="Post" action="changeact.asp">
<center>
<table width = "969" border="1" cellpadding="4" cellspacing="0"
style="border-collapse: collapse" bordercolor="#111111" height="104">
<tr>
<input type="hidden" name="UID" value=<%=request.querystring("user")%>>
<%Do while Not PRS.EOF%>
<td width="10" align="left">
<input type="hidden"
name="PID"value=<%=PRS("Prod_ID")%>><%=PRS("Prod_ID")%> </td>
<td width="40" align="left"><%=PRS("Prod_Name")%> </td>
<td width="10" align="left"><%=PRS("Prod_Code")%> </td>
<td width="60" align="left">
<input type="text" name="quantity" size="20">Quantity</td>
<td width="1" align="left">
<select name="finish="3">Finish
<OPTION value=Plain>Plain</OPTION>
<OPTION Value="Brass">Brass</OPTION>
<OPTION Value="Galv">Galvanized</OPTION>
</select></td>
<td width="40" align="left">
<select name="pkg" size="3">Package
<OPTION>Box</OPTION>
<OPTION>Paper bag</OPTION>
<OPTION>Plastic bag</OPTION>
</select></td>
</tr>
<%mrs.movenext
Loop %>
</table>
<p>
<input type="submit" value="Order" name="B1">
<input type="submit" value="Cancel" name="B1">
</form>
package is also selected for that product.
If a quantity is not entered for a product, no finish or package should be selected.
If no quantities are entered, the form should not submit.
PRS is the product recordset. The loop can be 1 to n times.
I think this is gonna take client side scripting, and I've googled 'til I need
glasses, but no joy. And yeah, I know it's a lousy table layout, but pretty isn't
the priority right now.
Thanks,
Mike R
<form method="Post" action="changeact.asp">
<center>
<table width = "969" border="1" cellpadding="4" cellspacing="0"
style="border-collapse: collapse" bordercolor="#111111" height="104">
<tr>
<input type="hidden" name="UID" value=<%=request.querystring("user")%>>
<%Do while Not PRS.EOF%>
<td width="10" align="left">
<input type="hidden"
name="PID"value=<%=PRS("Prod_ID")%>><%=PRS("Prod_ID")%> </td>
<td width="40" align="left"><%=PRS("Prod_Name")%> </td>
<td width="10" align="left"><%=PRS("Prod_Code")%> </td>
<td width="60" align="left">
<input type="text" name="quantity" size="20">Quantity</td>
<td width="1" align="left">
<select name="finish="3">Finish
<OPTION value=Plain>Plain</OPTION>
<OPTION Value="Brass">Brass</OPTION>
<OPTION Value="Galv">Galvanized</OPTION>
</select></td>
<td width="40" align="left">
<select name="pkg" size="3">Package
<OPTION>Box</OPTION>
<OPTION>Paper bag</OPTION>
<OPTION>Plastic bag</OPTION>
</select></td>
</tr>
<%mrs.movenext
Loop %>
</table>
<p>
<input type="submit" value="Order" name="B1">
<input type="submit" value="Cancel" name="B1">
</form>