Forum Moderators: open
<Form name="MyForm" method="POST" action="secondpage.asp">
<table>
<td width="25%" height="23"> New Addition</td>
<td width="75%" height="23"> <input type="checkbox" name="Additions" value="True"></td>
</tr>
<tr>
<td width="25%" height="23"> Special Offer</td>
<td width="75%" height="23"> <input type="checkbox" name="Sale" value="True"></td>
</tr>
</Table>
</Form>
<%
MySQL="insert into Product(Additions,Sale) Values(" & request("Additions") & "," & request("Sale") & ")"
conn.Execute(MySQL)
conn.Close
%>
Any Idea?
<%
Dim newAdditions, isSpecialOffer
IF request("Additions") = "True" Then
newAdditions = true
Else
newAdditions = false
End If
IF request("Sale") = "True" Then
isSpecialOffer= true
Else
isSpecialOffer= false
End If
MySQL="insert into Product(Additions,Sale) Values(" & newAdditions & "," & isSpecialOffer & ")"
conn.Execute(MySQL)
conn.Close
%>