To have the radio buttons and checkboxes pre-checked, you need to add the checked="checked"
attribute to the HTML you generate for each control you want to display checked.
For example, if you currently 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" '; ?>
/>
Update: For drop down menus, you want to change this:
<select name="foo">
<option value="bar">Text</option>
</select>
To this, which uses selected="selected"
:
<select name="foo">
<option value="bar"
<?php if(isset($_POST['foo']) && $_POST['foo'] == 'bar')
echo ' selected="selected"';
?>
>Text</option>
</select>
Be careful to keep the two "bar" values that appear above synchronized (echoing the options in a loop will help to make sure of that).