I want to make an ASP code with option buttons. If i select an options the code related to that gets activated.Plz help.
How to make asp code with option buttons if statements
Collapse
X
-
Tags: None
-
-
2 yrs of exp........Originally posted by Raman PahwaI want to make an ASP code with option buttons. If i select an options the code related to that gets activated.Plz help.Comment
-
Thats goodOriginally posted by Raman Pahwa2 yrs of exp........
whats code you are using
this code is working for data based on option button
provide more detail with code if porblemsCode:<body> <form action="test5.asp" method="post"> <table> <tr> <td> <select name="opt" > <option value="option1">option1</option> <option value="option2">option2</option> <option value="option3">option3</option> <option value="option4">option4</option> </select> </td></tr></table> <%'session("option")=%> <input type="submit"> <% 'this code is normally print your select option Response.Write(Request.Form("opt")) 'If you wants to select from database based on your option 'open conn with database and select with this query set R1=conn.execute("select *from your tablename where yourfield='"&Request.Form("opt")&"'") Response.Write(R1("yourfields")) %></form> </body>
Dr. B is already asked you whats code you are using for it
regards
jhaComment
Comment