Title: Form Variables
Last modified: August 21, 2016

---

# Form Variables

 *  Resolved [DIdesigns](https://wordpress.org/support/users/didesigns/)
 * (@didesigns)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/form-variables/)
 * is it possible get the form variables into a session or at least be able to run
   a echo $_POST somewhere?
 * [http://wordpress.org/plugins/quick-contact-form/](http://wordpress.org/plugins/quick-contact-form/)

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

 *  [Graham](https://wordpress.org/support/users/aerin/)
 * (@aerin)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/form-variables/#post-3963140)
 * Possibly….
 * The form variables are all output to an array called $formvalues in the qcf_loop
   function. So you can do what you like to them after that.
 * I’m not a proper developer, I just do this as a hobby. If you can give me a clue
   as to what you want I might be able to do something but I’ve never played with
   session variables so it’s a bit of a leap unto the unknown…
 *  Thread Starter [DIdesigns](https://wordpress.org/support/users/didesigns/)
 * (@didesigns)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/form-variables/#post-3963142)
 * i figured out what I needed… only issue now is your redirect happens really late.
   
   <?php session_start();
 *  $_SESSION[‘qcf1’] = $_POST[‘qcfname1’];
    $_SESSION[‘qcf2’] = $_POST[‘qcfname2’];
   $_SESSION[‘qcf3’] = $_POST[‘qcfname3’];
 * ?>
 * this allows me to use the submitted form content on the redirected page
 *  [Graham](https://wordpress.org/support/users/aerin/)
 * (@aerin)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/form-variables/#post-3963148)
 * The redirect happens after the form has been sent and the messages saved to the
   options table.
 * If you can suggest a new location in the script for the redirect that doesn’t
   make a dogs dinner of everything else I will be happy to oblige.
 *  [Graham](https://wordpress.org/support/users/aerin/)
 * (@aerin)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/form-variables/#post-3963177)
 * Calling this resolved as there has been no response from the OP

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

The topic ‘Form Variables’ is closed to new replies.

 * ![](https://ps.w.org/quick-contact-form/assets/icon-128x128.png?rev=1068066)
 * [Quick Contact Form](https://wordpress.org/plugins/quick-contact-form/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/quick-contact-form/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/quick-contact-form/)
 * [Active Topics](https://wordpress.org/support/plugin/quick-contact-form/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/quick-contact-form/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/quick-contact-form/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Graham](https://wordpress.org/support/users/aerin/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/form-variables/#post-3963177)
 * Status: resolved