<input type="radio" name="foo" value="bar"<?php if($_POST['foo'] == 'bar') echo ' checked="checked"'; ?> />