php form redirection to other page and receiving the values
<p>I have a php page with a form named "BuyForm" and a separate submit button.. like this</p>

<pre><code>&lt;form id="BuyForm" name="BuyForm" method="post" action="purchase.php" enctype="multipart/form-data"&gt;
// form goes here
//example of one field
&lt;div class="wrapper"&gt; Your Name:
&lt;input type="text" class="input" name="txtUserName" value="&lt;?php if(isset($user_name)){echo $user_name;} ?&gt;" &lt;?php if(isset($flag) &amp;&amp; $flag == 1){echo "error";}?&gt; &gt;
&lt;/div&gt;
// more form options
</code></pre>

<p>
    </p>

<p>This form is on this page "purchase.php". 
The reason of action="purchase.php" i.e. redirecting this form back to this page is that because all validation is in this page only.</p>

<p>Now there is a problem im stuck with and seek opinions..</p>

<ol>
<li><p>I want to transfer these form values (for example name="txtUserName") to another page and I know i can directly do it via action="otherpage.php" and recieving there via php.
But this could not be possible as i have to move all my current validations to that page (otherpage.php) and if anything is wrong then i have to redirect back to this form page (purchase.php) this will be waste of time and bandwidth and not a good coding..
What else could be done in this case? i.e.  how can i send values from this page to that page?</p></li>
<li><p>in regards to Q-1 above how can i receive values on that page?</p></li>
</ol>

<p>Thanks in anticipation..</p>
