Jump to content

Checking radio button according to database content


captain_scarlet87

Recommended Posts

Hey,

 

Just a simple one hopefully. I need help displaying the appropriate radio button as checked when matching data in a table.

 

At the moment the code snippet below  just displays the <% content code on the page when it shouldn't.

 

Cheers.

 

<p>
	        	<b>Administrator? </b> <input type="radio" name="admin" value="1" <% If admin="1" Then Response.Write("checked") %> /> Yes <input type="radio" name="admin" value="0" <% If admin="0" Then Response.Write("checked") %> /> No </p>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.