Jump to content

Pass $name from php back to html


StevenMG

Recommended Posts

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!

 

Link to comment
https://forums.phpfreaks.com/topic/294955-pass-name-from-php-back-to-html/
Share on other sites

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! ;D

 

This forum rocks!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.