Hi,
I am trying to implement a mail treating part via PHP, but I am not that successful. My first go was using session variables but when putting by my host it didn't work anymore.
So now I am trying it via Cookies. But for some reason the cookies set on Page1 are not available on any other page. I even think they are just not set. ( I tried it with $_COOKIES and
$HTTP_COOKIE_VARS with short and full cookies)
Underneath you find a part of my code for page1 and page2.
Can some one help?
File 1:
..
<? setcookie("A","$user","/","Mydomain");
setcookie("B","$host","/","Mydomain");
setcookie("C","$password","/","Mydomain");
// redirect user to page2
header("Location: file2.php");
?>
File 2:
<?php
$username = $HTTP_COOKIE_VARS['A'];
$host = $HTTP_COOKIE_VARS['C'];
$password = $HTTP_COOKIE_VARS['B'];
?>
<html>
<head> test cookie </head>
<?echo "AAA: $host \n"; ?>
<?echo "BBB: $username \n"; ?>
<?echo "CCC: $password \n"; ?>
</body>
</html>
OUTPUT ON SCREEN :
AAA: BBB: CCCC: