StevenMG Posted February 28, 2015 Share Posted February 28, 2015 My Contact Form is working great. Thanks to this forum! After the mail is sent the thankyou.html page opens. On the thankyou.html page is it possible to pass the name the user typed in the contact.html page? Here is the order of pages run: contact.html mymail.php thankyou.html This code runs after the message is sent in the thankyou.html page: <p>Thank you </p> <?php $name=$_GET["name"]; echo $name; ?> <p>You will receive a reply soon.</p> Thank you in advance! Quote Link to comment https://forums.phpfreaks.com/topic/294955-pass-name-from-php-back-to-html/ Share on other sites More sharing options...
Solution Barand Posted February 28, 2015 Solution Share Posted February 28, 2015 To execute php, rename "thankyou.html" to "thankyou.php" Quote Link to comment https://forums.phpfreaks.com/topic/294955-pass-name-from-php-back-to-html/#findComment-1507036 Share on other sites More sharing options...
StevenMG Posted February 28, 2015 Author Share Posted February 28, 2015 Barand, Thank you for the solution! I come from years of coding in C++, VB6 VBA and a few I have forgotten. This solution is something I never would have dreamed would work. It must be the server-side that identifies how to handle the content of a file by its extension. Interesting! This forum rocks! Quote Link to comment https://forums.phpfreaks.com/topic/294955-pass-name-from-php-back-to-html/#findComment-1507054 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.