Pass values to another page
<p>I have a page where I output some data (page1.php). Also I have another page (page2.php) where I need to pass the values as well.</p>

<pre><code>// page1.php

$myVals = '""';

foreach($values as $name) {
    $myVals .= ',"'.( strlen($name) ? htmlspecialchars($name) : ' ').'"';
}

$_SESSION['myVals'] = $myVals;
</code></pre>

<p>On page2.php I need myVals to be placed into the following string:</p>

<pre><code>$xls-&gt;addRow(Array("First Name","Last Name","Website","ID"));
</code></pre>

<p>There are supposed to be separate values for xls file headers. Currently if I put my string in it, it is interpreted as a single value.</p>

<pre><code>$xls-&gt;addRow(Array($_SESSION['myVals']));
</code></pre>

<p>What am I missing?</p>
