Putting session value in a varrible in PHP
<p>I want to store a value from a session in a variable to work on in the current script. However when i run;</p>

<pre><code>$from = $_SESSION['userid'];
echo '$from'; 
</code></pre>

<p>$from seems to be blank. When i run echo '$_SESSION['userid']'; it returns the correct value</p>
