Problem with hidden variable
Posted: Thu Feb 03, 2005 1:28 am
Hi EveryBody,
well i have some problem with the hidden variable....
the problem is
in one page i am inserting the details into database...on successfull insertion i am striring a message in varaiable like
$confirm="Information successfully Added";
so i am redirecting to another page using
<html>
<body onload="redirect.submit">
<form name="redirect" action="page2.php" method="post">
<input type="hidden" name="confirm" value="<? echo $confirm";?>>
</form>
</body>
</html>
so when i chk the variable $confirm in page2.php
and print the value only word "Information" is displayed ...
can anyone tell whats the problem
any alternate method...........
well i have some problem with the hidden variable....
the problem is
in one page i am inserting the details into database...on successfull insertion i am striring a message in varaiable like
$confirm="Information successfully Added";
so i am redirecting to another page using
<html>
<body onload="redirect.submit">
<form name="redirect" action="page2.php" method="post">
<input type="hidden" name="confirm" value="<? echo $confirm";?>>
</form>
</body>
</html>
so when i chk the variable $confirm in page2.php
and print the value only word "Information" is displayed ...
can anyone tell whats the problem
any alternate method...........