Answered
Carrying $_POST vars to next page
I have a form processing page, which uses the $_POST
variables to insert a record - simple.
What I am trying to do is to use these same $_POST variables in the next page (after submit) to create an e-mail which will then be used to verify that the e-mail address is true.
I am fairly new at this and I'm not sure how to do this....
I thought by using the following, I could re-capture the variables and use them on the next page, but obviously not.
<?php
$username=$_POST['username'];
$postgroupcode=$_POST['groupcode'];
$email=$_POST['email'];
$title=$_POST['title'];
$firstname=$_POST['firstname'];
$lastname=$_POST['lastname'];
?>
Does this mean I have to put the mail function in the same page as the record insert function?
What I am trying to do is to use these same $_POST variables in the next page (after submit) to create an e-mail which will then be used to verify that the e-mail address is true.
I am fairly new at this and I'm not sure how to do this....
I thought by using the following, I could re-capture the variables and use them on the next page, but obviously not.
<?php
$username=$_POST['username'];
$postgroupcode=$_POST['groupcode'];
$email=$_POST['email'];
$title=$_POST['title'];
$firstname=$_POST['firstname'];
$lastname=$_POST['lastname'];
?>
Does this mean I have to put the mail function in the same page as the record insert function?
