Jump to content

Pass $name from php back to html


StevenMG
Go to solution Solved by Barand,

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.