Title: validation
Last modified: August 21, 2016

---

# validation

 *  Resolved [stimsonm](https://wordpress.org/support/users/stimsonm/)
 * (@stimsonm)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/validation-17/)
 * is there a way to stop the form submit if the email field is empty?
 * [http://wordpress.org/plugins/subscribe2/](http://wordpress.org/plugins/subscribe2/)

Viewing 8 replies - 1 through 8 (of 8 total)

 *  [Matt Robinson](https://wordpress.org/support/users/mattyrob/)
 * (@mattyrob)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/validation-17/#post-4222914)
 * [@stimsonm](https://wordpress.org/support/users/stimsonm/),
 * Why? If you enter anything that doesn’t look like an email the form is presented
   again with an error message below it.
 *  Thread Starter [stimsonm](https://wordpress.org/support/users/stimsonm/)
 * (@stimsonm)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/validation-17/#post-4222931)
 * mine submits, if i just choose submit it goes to thank you page
 *  Thread Starter [stimsonm](https://wordpress.org/support/users/stimsonm/)
 * (@stimsonm)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/validation-17/#post-4222934)
 * on a side note i’m not using widget I’m using template tag:
 *     ```
       <?php
       	$content = apply_filters('the_content', '<p><!--subscribe2--></p>');
       	echo $content;
       ?>
       ```
   
 *  [Matt Robinson](https://wordpress.org/support/users/mattyrob/)
 * (@mattyrob)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/validation-17/#post-4222942)
 * [@stimsonm](https://wordpress.org/support/users/stimsonm/),
 * If you have deployed the code outside of the page shortcode or widget then something
   is probably being missed. Is there no way you can use the shortcode on a page
   to check functionality? Also, check what the $_POST variable holds after submission
   on your page, that might help you debug.
 *  Thread Starter [stimsonm](https://wordpress.org/support/users/stimsonm/)
 * (@stimsonm)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/validation-17/#post-4222958)
 * i used the button to create the form on a page and it did the same thing. How
   do I check what the post variable holds?
 *  [Matt Robinson](https://wordpress.org/support/users/mattyrob/)
 * (@mattyrob)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/validation-17/#post-4223000)
 * [@stimsonm](https://wordpress.org/support/users/stimsonm/),
 * Something like Firebug would help maybe or just add a var_dump() to the theme
   file.
 *  Thread Starter [stimsonm](https://wordpress.org/support/users/stimsonm/)
 * (@stimsonm)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/validation-17/#post-4223129)
 * _post was 636, not sure what that is
 *  [Matt Robinson](https://wordpress.org/support/users/mattyrob/)
 * (@mattyrob)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/validation-17/#post-4223130)
 * [@stimsonm](https://wordpress.org/support/users/stimsonm/),
 * Something is clearly going very wrong in your deployment of the code outside 
   of the intended Widget or shortcode. For it to be returning just an integer number
   is nothing at all like what it should be returning.
 * I’d advise you start over and try to use the plugin as it’s designed within your
   site.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘validation’ is closed to new replies.

 * ![](https://ps.w.org/subscribe2/assets/icon-256x256.png?rev=2318630)
 * [Subscribe2 - Form, Email Subscribers & Newsletters](https://wordpress.org/plugins/subscribe2/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/subscribe2/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/subscribe2/)
 * [Active Topics](https://wordpress.org/support/plugin/subscribe2/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/subscribe2/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/subscribe2/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [Matt Robinson](https://wordpress.org/support/users/mattyrob/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/validation-17/#post-4223130)
 * Status: resolved