To preset radio buttons and checkboxes, you need to add an attribute checked="checked"to the HTML that you create for each control that you want to display.
For example, if you have this:
<input type="checkbox" name="foo" value="bar" />
You want to change it to this:
<input type="checkbox" name="foo" value="bar"
<?php echo empty($_POST['foo']) ? '' : ' checked="checked" '; ?>
/>
: :
<select name="foo">
<option value="bar">Text</option>
</select>
selected="selected":
<select name="foo">
<option value="bar"
<?php if(isset($_POST['foo']) && $_POST['foo'] == 'bar')
echo ' selected="selected"';
?>
>Text</option>
</select>
, "", ( ).