Hi all,
If you take a look at the snippet of code below you will notice i am dynamically retrieving a result from the mySQL DB. The values in the 'status' field can be only 'yes' or 'no'.
These values are then used as titles for the radio buttons (in uppercase).
My question in how can i change the titles 'yes' and 'no' to 'Active' and 'Non-Active' respectively?
Cheers,
micmac
<?
$active_check = $row1["status"];
$array=array('yes', 'no');
foreach($array as $val){
echo "<input type='radio' name='status' value='$val'";
if ($active_check==$val) echo " checked";
echo "> <b>";
if ($val=='no') $val='no';
echo strtoupper($val)."</b> ";
}
?>