I’m trying to create a session variable when a user opens the email i send them. Everything is done with two .php files. (mailer.php and register.php)
mailer.php gets all the information for a user and sends them a email with a url to the register.php page.
I want to get a session variable (User_id) from mailer.php into register.php. I’ve put the following in the email that i send from mailer.php. I doubt it works, but it illustrates what I need.
`$message = $Url . "php session_start(); '$_SESSION[id]' = " . $row['user_id'] . " ?>"; ... $mail->MsgHTML($message); $mail->Send();`
And then on the register page
`$userID = $_SESSION['id'];`
You cannot attach function inside of the variable…Instead just create new table to store verification code,
When user opens his email and click the link, hell go to the verification page.