o.k. ich hab das jetz mal in ne extra *.php ausgelagert.
Der User wird auf diese verlinkt.
Die sieht so aus:
PHP-Code:
<?php
error_reporting(E_ALL);
// Varriablen übernehmen
$Token = $_GET[Token];
//Cookies setzen
setcookie("UserId",$_GET[UserID],0);
setcookie("Email",$_GET[Email],0);
// Cookies prüfen
var_dump ($_COOKIE["UserID"]);
var_dump ($_COOKIE["Email"]);
?>
Dabei hab ich folgendes Problem:
Notice: Use of undefined constant ModiusToken - assumed Token' in /home/.sites/127/site693/web/TEST/cookie.php on line 5
Notice: Use of undefined constant UserID - assumed 'UserID' in /home/.sites/127/site693/web/TEST/cookie.php on line 8
Notice: Use of undefined constant Email - assumed 'Email' in /home/.sites/127/site693/web/TEST/cookie.php on line 9
Notice: Undefined index: Email in /home/.sites/127/site693/web/TEST/cookie.php on line 9
Notice: Undefined index: UserID in /home/.sites/127/site693/web/TEST/cookie.php on line 12
NULL
Notice: Undefined index: Email in /home/.sites/127/site693/web/TEST/cookie.php on line 13
NULL
Wieso werde die Varriablen nicht übernommen?
Die URL ist:
cookie.php?UserID=1&Email=test@gmail.com&Token=1234567
Danke & Lg
Creamy
Lesezeichen