lostaddiction wrote in php

php form help needed.

i've been using a formmail script (which i think i got from www.tectite.com?) for a while now, and have it so that upon submitting the form it emails the results to me in html format, and redirects the user to a thankyou page.

yesterday i was trying to get it so that the thankyou.php page takes the $firstname from the form and displays "Thankyou Bob" or whatever they entered for firstname. but my limited php knowledge is a stumbling block.

i tried the code that would be used if just passing straight to the naxt php page...

Thankyou <?php echo $_POST["firstname"]; ? >

...but that did'nt work.

so anybody got any advise/tips/code for how to pass $firstname from the form to the formmail *and* the thankyou php page? i hope im not opening up a complex request here hehe, but everyone was extremely helpful with my last request :)