tbint Posted May 29, 2012 Share Posted May 29, 2012 I have a simple contact form and instead of printing the response HTML code I am redirecting to a thank you page. It is so easy for the user to hit refresh and submit the form again. But I would like to post and print a couple of variables to the thank you page. Just two $name and $domain. Could someone tell me how to post a variable after mail()? Quote Link to comment https://forums.phpfreaks.com/topic/263351-print-variables-to-thank-you-page-after-mail/ Share on other sites More sharing options...
scootstah Posted May 29, 2012 Share Posted May 29, 2012 Since you are redirecting you need a way to store the variables between pages. You'll probably want to use sessions for this. Quote Link to comment https://forums.phpfreaks.com/topic/263351-print-variables-to-thank-you-page-after-mail/#findComment-1349649 Share on other sites More sharing options...
tbint Posted May 29, 2012 Author Share Posted May 29, 2012 Is there a way to print the response HTML code to the script page, clear the data so they can't refresh and resubmit? Quote Link to comment https://forums.phpfreaks.com/topic/263351-print-variables-to-thank-you-page-after-mail/#findComment-1349659 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.