Welcome Guest, Not a member yet? Register   Sign In
Pre-populate select and radio
#8

[eluser]RobertB.[/eluser]
Code:
<label for="active">Active: </label>&lt;input type="radio" name="active" id="active" value="1" &lt;?=($entry-&gt;active == 1) ? set_radio('active', $entry->active, TRUE) : set_radio('active', '1') ?&gt; />
<label for="active">Inactive: </label>&lt;input type="radio" name="active" id="active" value="0" &lt;?=($entry-&gt;active == 0) ? set_radio('active', $entry->active, TRUE) : set_radio('active', '0') ?&gt; />


Messages In This Thread
Pre-populate select and radio - by El Forum - 10-22-2009, 03:33 PM
Pre-populate select and radio - by El Forum - 10-22-2009, 03:37 PM
Pre-populate select and radio - by El Forum - 10-22-2009, 03:44 PM
Pre-populate select and radio - by El Forum - 10-22-2009, 03:51 PM
Pre-populate select and radio - by El Forum - 10-22-2009, 04:04 PM
Pre-populate select and radio - by El Forum - 10-22-2009, 07:30 PM
Pre-populate select and radio - by El Forum - 01-05-2010, 07:17 PM
Pre-populate select and radio - by El Forum - 02-24-2010, 08:40 PM
Pre-populate select and radio - by El Forum - 04-21-2010, 02:51 AM
Pre-populate select and radio - by El Forum - 03-01-2012, 08:53 AM



Theme © iAndrew 2016 - Forum software by © MyBB