Hi,
I have one php file that has a session variable "$basket". I want to pass this information in this variable to another php page, so it can obtain whats inside this variable and do what it wants with it.
I am currently using the code below to take values out of another PHP page:
$referer = explode('?', $HTTP_SERVER_VARS['HTTP_REFERER']);
function printError($errorMesg) {
printf("<br /> %s <br />\n", $errorMesg);
}
?>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
</head>
<body>
<?php
$Name = $HTTP_POST_VARS['Name'];
$Add_1 = $HTTP_POST_VARS['Add_1'];
$Add_2 = $HTTP_POST_VARS['Add_2'];
$Add_3 = $HTTP_POST_VARS['Add_3'];
$P_code = $HTTP_POST_VARS['P_code'];
$Email = $HTTP_POST_VARS['Email'];
Which works as its obtaining values from a text box in another page. But I just want to pass a variable and its values across, but if i use:
e.g.
$Email = $HTTP_POST_VARS[$Email];
But It doesn't work!!
Can anyone help me with parsing a variable across from one php page to another?????? Please.
Thanks
Reg
Gary