title: Passing Session Variables Through PHP Mail
body: <p>I'm having an issue passing $_SESSION variables through a multiple page form process using PHP mail. The emails are coming through fine, although they not displaying the variables. 
  My goal is to have users fill out forms on multiple pages, and have the data emailed back to me. </p>
  
  <p>Page 1</p>
  
  <pre><code>&lt;?php
  session_start();
  ?&gt;
                    &lt;form method="post" action="submitpage.php"&gt;
                &lt;label&gt;
                  &lt;input type="radio" name="vehicle_type" value="car" checked /&gt;
                  &lt;img class="img-responsive" src="img/vehicle2.png"&gt;
                &lt;/label&gt;
                &lt;label&gt;
                  &lt;input type="radio" name="vehicle_type" value="suv" /&gt;
                  &lt;img class="img-responsive" src="img/vehicle2.png"&gt;
                &lt;/label&gt;
                &lt;label&gt;
                  &lt;input type="radio" name="vehicle_type" value="van" /&gt;
                  &lt;img class="img-responsive" src="img/vehicle2.png"&gt;
                &lt;/label&gt;                                    
                &lt;label&gt;
                  &lt;input type="radio" name="vehicle_type" value="truck" /&gt;
                  &lt;img class="img-responsive" src="img/vehicle2.png"&gt;
                &lt;/label&gt;     
                &lt;label&gt;
                  &lt;input type="radio" name="vehicle_type" value="none" /&gt;
                  &lt;img class="img-responsive" src="img/vehicle2.png"&gt;
                &lt;/label&gt;                    
                &lt;/form&gt;
  </code></pre>
  
  <p>Page 2</p>
  
  <pre><code>&lt;?php
  session_start();
  $_SESSION['vehicle_type'] = $_POST['vehicle_type'];
  ?&gt;
                    &lt;form method="post" action="emailexample.php" id="submit-form"&gt;
                &lt;input type="Email" name="email"&gt;
                &lt;input type="submit" name="submit" value="Submit" id="submitbtn"&gt;
                &lt;/form&gt;
  </code></pre>
  
  <p>Page 3</p>
  
  <pre><code>&lt;?php
  session_start();
  
  $to      = 'myemail@gmail.com';
  $subject = 'test ';
  $message = "Your Vehicle Type is: " . $_POST['vehicle_type'] ."\r\n";
  $headers = 'From: email@example.com' . "\r\n" .
  
  
  mail($to, $subject, $message, $headers);
  ?&gt;
  </code></pre>