Home > ASP Development > Radio Button Question

Radio Button Question



I currently have 3 radio buttons... depending on which button is selected It writes a value to SQL... how can i get the page to remember which value was selected and have that value remain selected when the page reloads??!



Any ideas

    
Guest


You have that valur on reguest object. So you can use that to keep box checked
something like

Quote:
<input type=radio name="opt" value="1" <%if request("opt")="1" then response.write " checked "%>>
<input type=radio name="opt" value="2" <%if request("opt")="2" then response.write " checked "%>>
<input type=radio name="opt" value="3" <%if request("opt")="3" then response.write " checked "%>>

Was this answer helpful ? Yes No   
Guest
 
 
Home - About Infoqu - Contact - Privacy Statement - Link to Infoqu - Bookmark Infoqu

Copyright 2007-2008 by Infoqu. All rights reserved