Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 hw to get value of checkbox

Author  Topic 

shilpa.joshiv
Starting Member

3 Posts

Posted - 2009-12-05 : 12:53:04

hi
whn i m writing the code below then the value are nt retrieved from database...
(consider the input tag)
while(rs1.next())
{
%>




<TABLE cellpadding="20" cellspacing="5" border="4">
<TR>
<TD><TH>PRODUCT NAME</TH>
<TD><TH>DISCOUNT</TH>

</TR>
<TR>
<TD>
<input name="discount" value="%=rs1.getString("product_discount")%>" type="checkbox">
<%=rs1.getString("product_name")%>
</TD>
<TD>
<%=rs1.getString("product_discount")%>
</TD>
</TR>
</TABLE>

when i remove the value and give only name and type..thn values are retrieved

<input name="discount" value="%=rs1.getString("product_discount")%>" type="checkbox">

according to mine requirement i need to retrieve the value of the checkbox...
wht to do
plzzz help me out

russell
Pyro-ma-ni-yak

5072 Posts

Posted - 2009-12-05 : 23:18:08
Request.Form("Discount")

By the way is a SQL Server forum
Go to Top of Page
   

- Advertisement -