I seem to be having a heck of a time adding in an options page for my plugin. I had no idea it would end up being this complicated.
I've followed the directions here, and ended up with a form that looks like this:
<form method="post" action="options-general.php"> <?php wp_nonce_field('update-options') ?> <input type="text" name="user_style" value="<?php echo get_option('user_style'); ?>" /> <input type="hidden" name="page_options" value="user_style" /> <p class="submit"> <input type="submit" name="Submit" value="<?php _e('Update Options »') ?>" /> </p> </form>
But that form doesn't submit anything, just returns me to the Options page as though nothing had happened.