WordPress.org

Ready to get started?Download WordPress

Forums

Subscribe2
[resolved] validation (9 posts)

  1. stimsonm
    Member
    Posted 10 months ago #

    is there a way to stop the form submit if the email field is empty?

    http://wordpress.org/plugins/subscribe2/

  2. mattyrob
    Member
    Plugin Contributor

    Posted 10 months ago #

    @stimsonm,

    Why? If you enter anything that doesn't look like an email the form is presented again with an error message below it.

  3. stimsonm
    Member
    Posted 10 months ago #

    mine submits, if i just choose submit it goes to thank you page

  4. stimsonm
    Member
    Posted 10 months ago #

    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;
    ?>
  5. mattyrob
    Member
    Plugin Contributor

    Posted 10 months ago #

    @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.

  6. stimsonm
    Member
    Posted 10 months ago #

    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?

  7. mattyrob
    Member
    Plugin Contributor

    Posted 10 months ago #

    @stimsonm,

    Something like Firebug would help maybe or just add a var_dump() to the theme file.

  8. stimsonm
    Member
    Posted 10 months ago #

    _post was 636, not sure what that is

  9. mattyrob
    Member
    Plugin Contributor

    Posted 10 months ago #

    @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.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.