Code for Artists - Miles DeCoster

Use PHP to add radio buttons

Male
Female

Morning
Afternoon
Evening
Night


<?php 
	function make_radios($name, $value) {
		echo '<input type="radio" name="'.$name.'" value="'.$value.'">';
		echo " $value";
	}
?>

<?php make_radios("Gender","Male"); ?>
<?php make_radios("Gender","Female"); ?>
<?php make_radios("time","Morning"); ?>
<?php make_radios("time","Afternoon"); ?>
<?php make_radios("time","Evening"); ?>
<?php make_radios("time","Night"); ?>