passing parameters from one php to multiple php
<p>.I have three php pages:</p>

<p>page1.php
page2.php
page3.php</p>

<p>on page1.php i have this code:</p>

<pre><code>&lt;form id="try" method="post" action="page2.php"&gt;
Batch: &lt;input id="batch" name="batch" type="text"/&gt;&lt;br /&gt;
Dept: &lt;input id="dept" name="dept" type="text"&gt;&lt;br /&gt;
&lt;input type="submit" /&gt;
&lt;/form&gt;
</code></pre>

<p>on page2.php i am able to use the values inserted on page1.php by simply calling them using <code>$_POST['batch']; and $_POST['dept'];</code></p>

<p>but what i want to do next is to pass the values of batch and dept from page2.php to page3.php. or maybe from page1.php to page2.php since i think it's just the same.</p>

<p>.Help pls! Thanks in adv</p>

<p>@kjy112 - i'm confused, since i am using </p>

<pre><code>&lt;form method="post"&gt; 
</code></pre>

<p>should i be starting my session on page2.php by using the following:</p>

<pre><code>session_start();
$_SESSION['batch'] = $_POST['batch'];
$_SESSION['dept'] = $_POST['dept'];
</code></pre>

<p>and then use</p>

<pre><code>session_start();
$batch = $_SESSION['batch'];
</code></pre>

<p>to use it on page3.php?</p>
