How to get variable value on next page

Posted on 16th Feb 2014 by admin

Hello friends
i am working on payentry page ..there i have this code.........

Code: $str="select MAX(PSRN) from paymajor";
$result=mysql_query($str) or die(mysql_error());
while($row=mysql_fetch_assoc($result))
{
$psrn=$row['MAX(PSRN)']+1;
}
i need to print $psrn value in the success page......for that i am using
header ('Location: http://localhost/bitssap/success.php');

but after success its showing this meassage
Data entered successfully. The PSRN generated is $psrn

i am not able to print the value of psrn on success page
can anybody suggest me how to do this...

Other forums