belinha
10-02-2002, 12:35 PM
Hello all,
I hope someone can help me with this question, even to say it is not possible!
I'm coding PHP and at a certain point I have to redirect to a different page (without using "include"), but at the same time I have to keep/send two variables. I'm using javascript to send the variables via url:
<?
echo "<SCRIPT language=JavaScript>";
echo "window.location.replace('mypage.php?codbadge=$codbadge&passwd=$passwd');";
echo "</SCRIPT>";
?>
If I do it like this (it works) however, the two variables will be read at the URL bar of the browser (ex:http://www.whatever.com/mypage.php?codbadge=1111&passwd=2222 ). I'd prefer to keep these hidden, but I must send them to the next page.
Can someone help me with this or is it impossible?
Thanks for any help
Belinha
I hope someone can help me with this question, even to say it is not possible!
I'm coding PHP and at a certain point I have to redirect to a different page (without using "include"), but at the same time I have to keep/send two variables. I'm using javascript to send the variables via url:
<?
echo "<SCRIPT language=JavaScript>";
echo "window.location.replace('mypage.php?codbadge=$codbadge&passwd=$passwd');";
echo "</SCRIPT>";
?>
If I do it like this (it works) however, the two variables will be read at the URL bar of the browser (ex:http://www.whatever.com/mypage.php?codbadge=1111&passwd=2222 ). I'd prefer to keep these hidden, but I must send them to the next page.
Can someone help me with this or is it impossible?
Thanks for any help
Belinha