I'm still kinda confused on the official way to register session vars posted from a form with super-globals and v4.3. Perhaps a good tutorial or clarification here is needed. It's working now...but I've seen other methods using session_register. I'm also mixed up about using $POST with $SESSION. Are both needed?Thanks
What I'm using now (posted from a form page):
session_start();
header("Cache-control: private");
$email = $_SESSION["email"];
more vars are posted to this page...so, continuing the session:
session_start();
$txn_id = [$SESSION['txn_id'];
$txn_id = $POST['txn_id'];
finally ending up in a mailer:
session_start();
$message = "Your id# is $txn_id";
mail($email,$subject,$message,$headers);
and displaying on a confirmation page:
session_start();
session_destroy();
echo "Your email is $email and your id# is $txn_id";
exit;
Like I said...me lost.
Thanks for any help...ugh :rolleyes: