So I have this guy:
<!-- Combobox -->
<table>
<br>Is your kitten active or lethargic?:
<select name="Activity">
<option value="Active">Active</option>
<option value="Lethargic">Lethargic</option>
</select>
</table>
With two options, now somewhere above is a guy that does this:
$Activity = $_POST['Activity'];
For my radiobuttons I have a code that checks them based on who was inside a variable before I want to adapt it to do something similar on this combobox, can anyone help out? I am a beginner in php so dumb it down to 5 year old, even add dinosaurs into the mix if you want. But do help me comprehend it.
Oh and if its not too much to ask how can default the radiobuttons to male if the variable is empty or does not have the correct word its checking for?
My radiobutton code:
<!-- Radio Buttons -->
Gender:
<input type="radio" name="Gender" value="Male" <?php echo ($Gender=='Male')?'checked':'' ?>>Male
<input type="radio" name="Gender" value="Female" <?php echo ($Gender=='Female')?'checked':'' ?>>Female