title: Can't pass PHP session variables to multiple pages
body: <p>so i am having a problem passing php session variables to multiple pages.</p>
  
  <p>Essentially I have 1 form that collects answers. upon submission the user is taken to a page where dependent on the choice they made in the form, they will see a page loaded in an iframe. I have figured out how to make it work from form submission to the first page but when i try to carry over the variables to another page (via hyperlink) they do not stay.</p>
  
  <p>below is my code:</p>
  
  <h2>form</h2>
  
  <pre><code>&lt;form method="post" action="offers.php"&gt; 
  
  0. &lt;input type="text" name="name0"/&gt; &lt;br/&gt;&lt;br/&gt;
  1. &lt;input type="text" name="name1"/&gt; &lt;br/&gt;&lt;br/&gt;
  &lt;input type="submit" name="submit"/&gt; &lt;/form&gt;
  </code></pre>
  
  <h2>Page 1 (after form submission offers.php)</h2>
  
  <pre><code>&lt;?php 
  session_start(); 
  
  $_SESSION['name0'] = $_POST['name0'];
  $_SESSION['name1'] = $_POST['name1'];
  
  
  $name0 = $_POST['name0'];
  
  $name1 = $_POST['name1'];
  
  
  if ($name0 == 'dave')
  $site="offer1.php";
  elseif ($name0 == 'john')
  $site="offer1a.php";
  else
  $site="http://websiteC.com";
  
  ?&gt;
  
  &lt;HTML&gt;
  &lt;body&gt;
  &lt;div style="height:90px;"&gt;header&lt;/div&gt;
  &lt;iframe src="&lt;?php echo $site; ?&gt;" name="offerFrame" style="width:100%; height:100%;"     align="center"&gt;&lt;/iframe&gt;
  &lt;br&gt;
  &lt;a href="offer2.php"&gt;dfsdf&lt;/a&gt;
  
  
  &lt;/body&gt;   
  &lt;/HTML&gt;
  </code></pre>
  
  <h2>page2 (user gets here via hyperlink - offer2.php)</h2>
  
  <pre><code>&lt;?php 
  session_start(); 
  
  $_SESSION['name0'] = $_POST['name0'];
  $_SESSION['name1'] = $_POST['name1'];
  
  
  $name0 = $_POST['name0'];
  
  $name1 = $_POST['name1'];
  
  
  if ($name1 == 'dave')
  $site="2a.php";
  elseif ($name1 == 'john')
  $site="2b.php";
  else
  $site="http://websiteC.com";
  
  ?&gt;
  
  &lt;HTML&gt;
  &lt;body&gt;
  &lt;div style="height:90px;"&gt;header&lt;/div&gt;
  &lt;iframe src="&lt;?php echo $site; ?&gt;" name="offerFrame" style="width:100%; height:100%;"  align="center"&gt;&lt;/iframe&gt;
  &lt;br&gt;
  &lt;a href="offer3.php"&gt;dfsdf&lt;/a&gt;
  
  
  &lt;/body&gt;
  &lt;/HTML&gt;
  </code></pre>
  
  <hr>
  
  <p>Thanks for the help</p>
  
  <p>-dave</p>