Using Nonce for my Form

I figured out what I needed to do. I needed if(isset( $_POST[ ‘tdgmt_plugin_noncename’]) && wp_verify_nonce( $_POST[‘tdgmt_plugin_noncename’], plugins_url( __FILE__))){ to be above if($screen->base == ‘settings_page_tgdmt_options_page’){ as well as fixing my typos of tdgmt_plugin_noncename instead of tgdmt_plugin_noncename

Custom Form Redirects to Post after Submit

input name attribute value name is reserved by WordPress, this is the problem i have found after visiting and testing your form, simply replace name=”name” with name=”fullName” etc. <input type=”text” name=”name” placeholder=”Name*” value=”<?php echo esc_attr($_POST[‘name’]); ?>” /> to <input type=”text” name=”fullName” placeholder=”Name*” value=”<?php echo esc_attr($_POST[‘fullName’]); ?>” />

Customize wp-admin form custom fields

I am not sure this is your problem if you are not getting any errors, but make sure you have your jQuery code within document ready wrappers and pass the $ in to make sure you can access it since WordPress runs in no-conflict mode. jQuery(document).ready(function($) { $(“input”).keyup(function(){ $(“input”).css(“background-color”,”pink”); }); }); It would also be … Read more

Ajax Form seems to post, but does not return

Your settings object in ajax call is not properly set up: action should be inserted in the data object. For example: $.ajax({ url: ajax_url, data:{ action: ‘trailer_report’,// action must be set here // other stuff here } //other ajax stuff }); Hope it helps!