I have a post php form and a set of inputs:
Every input looks the same, only the names change
you can change the get_option() function to be something like
function get_option($name) {
$defaults = array(
'fist_name' => 'Mike',
'fist_name' => 'Wordpressor',
'my_name' => 'Dunno'
);
// get the value from the $defaults array
$val = $defaults[$name];
// but if the same value has already been posted - replace the default one
if (isset($_POST[$name])) {
$val = $_POST[$name];
}
return $val;
}