title: form action in contact form 7 wordpress
body: <p>Im using Contact Form 7 and upon submitting I am redirecting to another page. Im looking to set a session variable so that when I get to the new page it can check if the form has been submitted or not. It means that if you arrive on that page from elsewhere (as opposed to the form) it wont allow you see certain download links.</p>
  
  <p>My issue is that I cant seem to pass on the <code>$_POST</code>. Im unsure where to set the variable. within the Contact form 7 plugin.</p>
  
  <p>Here is the output of the form...</p>
  
  <pre><code>&lt;form action="/downloads/#wpcf7-f127-p124-o1" method="post" class="wpcf7-form" novalidate="novalidate"&gt;
  
  &lt;div style="display: none;"&gt;
  
  &lt;input type="hidden" name="_wpcf7" value="127" /&gt;
  &lt;input type="hidden" name="_wpcf7_version" value="3.4" /&gt;
  &lt;input type="hidden" name="_wpcf7_unit_tag" value="wpcf7-f127-p124-o1" /&gt;
  &lt;input type="hidden" name="_wpnonce" value="211b6bff7f" /&gt;
  
  &lt;/div&gt;
  
  &lt;p&gt;Your Name (required)&lt;br /&gt;
  
  &lt;span class="wpcf7-form-control-wrap your-name"&gt;&lt;input type="text" name="your-name" value="" size="40" class="wpcf7-form-control wpcf7-text wpcf7-validates-as-required" aria-required="true" /&gt;&lt;/span&gt; &lt;/p&gt;
  
  &lt;p&gt;Your Email (required)&lt;br /&gt;
  
  &lt;span class="wpcf7-form-control-wrap your-email"&gt;&lt;input type="email" name="your-email" value="" size="40" class="wpcf7-form-control wpcf7-text wpcf7-email wpcf7-validates-as-required wpcf7-validates-as-email" aria-required="true" /&gt;&lt;/span&gt; &lt;/p&gt;
  
  &lt;p&gt;&lt;input type="submit" value="Send" class="wpcf7-form-control wpcf7-submit" /&gt;&lt;/p&gt;
  
  &lt;div class="wpcf7-response-output wpcf7-display-none"&gt;&lt;/div&gt;
  
  &lt;/form&gt;
  </code></pre>
  
  <p>Here is the code I would like implement</p>
  
  <pre><code> if(isset($_POST['your-email'])){          
  
           $_SESSION['user_email_set'] = true;
  }
  </code></pre>
  
  <p>The problem is I cant figure out where that action is going to as it seems to just point back to itself, and the <code>$_POST</code> doesnt seem to show anything.</p>
  
  <p>(Ive even tried <code>print_r($_POST);</code> on the same page and turned off the redirect and it still doesnt display anything)</p>
  
  <p>Thank you</p>