Forum Moderators: coopster
I (with lots of help) was able to get all of the above working for an array of checkboxes but, I cannot use the same method for the radio buttons (I was able to call and display them dynamically but, that didn't seem to help. Here's the code I'm strugling with:
<label>( National Touring
<input type="radio" name="touring" value="National Touring"></label>)
<label>( Regional Touring
<input type="radio" name="touring" value="Regional Touring"></label>)
<label>( Market-based
<input type="radio" name="touring" value="Market-Based"></label>)
<label>( Other
<input type="radio" name="touring" value="Other"></label>)
Can anybody teach me how this can be done? Much Thanks in advance.
Here's the last code I was trying, it seems similiar.
$touring = $_POST['touring'] ;
echo '<input type="radio" name="$touring" value="' .$value. '"';
echo ( in_array($value, $touring) )? ' CHECKED ' : '';
echo "> $value</input>";
I was able to get it to display the array of values, but not retain the selected value after validation.