Variables, different contexts in a single page
<p>Hi I'm tring to use same variable in two different contexts in a single page.</p>

<pre><code>some html
&lt;?php
   $variable1="sample"
?&gt;

some html

&lt;?php
   $variable2=variable1
?&gt;
some html
</code></pre>

<p>I know creating session is a solution. But I'm not sure if its suitable to create a session for this.</p>
