pass the php variable from one page to other page
<p>Well, I just started to work on server side scripting , I chose PHP, So let me explain where Im getting troubled.</p>

<p>This is very a quite simple questions.See, I have some links like these on my page1.php</p>

<pre><code> &lt;a href="page2.php"&gt;profile&lt;/a&gt;
 &lt;a href="page3.php"&gt;photos&lt;/a&gt;
</code></pre>

<p>Now when user jumps to page2.php or page3.php, I also want to pass the user unique ID to the corresponding page, say his email.so that i can update the page2.php according to the username.</p>

<p>When I googled, I heard lots of contradictions , some people were explaining to use <code>session_start()</code> and some people explains <code>cookies</code> and some people says <code>POST</code> and <code>GET</code>methods. Some people said its easy to hack when  you use GET or POST method and some people answered Cookies are client side and it disconnects from server and after hearing all those I decided to use <code>session_start()</code>  </p>

<p>But as im a newbee I dont know what to chose,which is the best way.Could anyone kindly explain me which is the best solution to use and why? and also please provide some sample example so that i can understand it much better.Any help is greatly appreciated.Thanks</p>
