passing variable to Thank You page

Thanks very much for the help with mail(). I feel a bit silly it was so simple!
Now, let’s say on page B.php I receive a name into [php]$name = $_POST[herName][/php].
How would I send [php]$name[/php] to thankYou.php from B.php?
Thanks again,
Gerard

If you’re redirecting via header(), use a session. Put session_start() at the top of both pages, the on the first page, set a session

$_SESSION[‘name’] = $name

On the second page, echo the session.

Sponsor our Newsletter | Privacy Policy | Terms of Service