Processing the following form in the admin area, but the database constantly returning an empty cell where the info should be. Help!!
<form action="options.php" method="post">
<input type="hidden" value="admin_bar" name="option_page"><input type="hidden" value="update" name="action"><input type="hidden" value="fd5754f034" name="_wpnonce" id="_wpnonce"><input type="hidden" value="/accessibilitysite/wp-admin/options-general.php?page=admin_bar&settings-updated=true" name="_wp_http_referer">
<table class="form-table">
<tbody><tr valign="top"><th scope="row">Admin Toggle</th>
<td><input type="checkbox" value="admin_bar_toggle" name="admin_bar_[admin_bar_toggle]"><p>Turn Admin Bar On ?</p></td>
</tr>
</tbody></table>
<p class="submit">
<input type="submit" value="Save Changes" class="button-primary">
</p>
</form>
value=""
? Checkboxes still need a value.options.php
won't save your data, typically the easiest way to whitelist an option(or set of options) is usingregister_setting
, without that though your option doesn't make it past the whitelist. Andy has provided a solution for you though... :)