<?php add_option( $option, $value, $deprecated, $autoload ); ?>
http://codex.wordpress.org/Function_Reference/add_option
global $options;
?>
<form action="options.php" method="post">
<?php $settings = get_option('options');
?>
<?php settings_fields('theme_options'); ?>
<fieldset>
<legend>Counter Position:</legend>
</br>
<p>
Right <input type="radio" name="position" value="right"/>
<p>
Left <input type="radio" name="position" value="left"/>
<p>
Center <input type="radio" name="position" value="center"/>
</fieldset>
</form>
<?php
function r_set()
{
register_setting('theme_options', 'options', 'validate_options');
}
add_action('admin_init', 'r_set');
function validate_options($value)
{
global $sa_options;
$val['position'] = $value['position'];
return $val;
}