Contact Form 7
[resolved] Required variables for manual use (3 posts)

  1. Steven Vachon
    Posted 4 years ago #

    Aside from the form fields, I've tried using these vars with no success:

    $form_id = 1;

    $unit_tag = 'wpcf7-f' . $form_id . '-p' . url_to_postid(get_option('siteurl')) . '-o1';

    echo '_wpcf7='.$form_id.'&_wpcf7_unit_tag='.$unit_tag.'&_wpcf7_is_ajax_call=1';

    Am I missing something?


  2. Steven Vachon
    Posted 4 years ago #


  3. Steven Vachon
    Posted 4 years ago #

    Now that this plugin's been updated to v3.0, manual use is working for me. So, if you fixed something on my behalf, thanks! If not and it's just a side-effect, thanks!!

    Now, I seem to have found a bug.... I put an html file on my desktop and submitted it with the proper vars to my webserver, and the form was validated. You should really put some kind of domain protection to circumvent this.

    By the way, the _unit_tag var doesn't seem to be required for validation.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Contact Form 7
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic