Wordpress - Post ID 203003

User 209241 Photo


Registered User
4 posts

You may need to add one more HIDDEN INPUT field in your form. WordPress requires a NONCE field and generates a code for this each time the form is submitted by a new user. Here is a sample line of code taken from one of my projects:


<input type="hidden" name="register-user_nonce" value="<?php echo wp_create_nonce('register-user-nonce'); ?>"/>


You would then need to check for the existence of this value when the form is submitted to ensure it is coming from your own website. This is a security feature so that people will not SPAM your contact forms from other websites.
http://www.siamcomm.com - Web Services & Tools
http://wintermutecorp.net - Low Cost Cloud Web Hosting with Great Support

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.