I try to save an option from the frontend but i can't find yet how to do it.
So, the idea is to give the blog owner a simple form with a dropdown that can select a different stylesheet.css. I have build it for the wp-admin area and it works fine, but i want to do the same in the frontend,
i have tried to include the wp-admin/options.php in the header but nothing, just errors,
i post the form to "wp-admin/options.php" but it redirect me in the wp-admin/options page.
here is the frontend form:
<form id="save-theme" name="save-theme" action="/wp-admin/options.php" method="post"> <select> <option>Select Theme</option> <option>Red</option> <option>Dark</option> <option>White</option> </select> <button name="update-options" type="submit">Save</button> <?php wp_nonce_field('update-options'); ?> </form>
thanks a lot!