close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Email and display on thankyou page

Thread began 7/15/2010 2:07 pm by edwardl.brown311835 | Last modified 7/16/2010 11:14 am by Jason Byrnes | 735 views | 3 replies |

edwardl.brown311835

Email and display on thankyou page

Need help...I have a form with many additional form fields...if I fill out the form everything gets sent via email...GREAT!

Now, when I set the action to thankyou.php and echo all of the values from the form...I get everything that was put into the form fields...but no email...

Can I have my cake and eat it too?

Is there a way to have the form submit to thankyou.php so the user can see the information they put in...and I get an email with the same...?

Really would appreciate help with this, thanks!

Sign in to reply to this post

Jason ByrnesWebAssist

No, it is not supported in the contact form solution pack to display the entered information on the thank you page.

Sign in to reply to this post

edwardl.brown311835

...just to be clear

Thanks Jason,
I just want to make sure I get it...even though it's not supported, I have displayed the form information on the thankyou page...

but are you saying there is no way to have the form submit to thankyou.php and send an email...is there a work-around?

...and don't say no...even if the answer is no :-)

Sign in to reply to this post

Jason ByrnesWebAssist

you could add the following code at the top of the contact page:

php:
<?php
if($_SERVER['REQUEST_METHOD'] == "POST") {
    foreach( 
$_POST as $key=>$val) {
        
$_SESSION[$key] = $val;
        
    }
}
?>




this will store the form values in session variables, then on the thank you page, you can use the session variables to output the information submitted by the form:

php:
<?php echo((isset($_SESSION["Contact_Name"]))?$_SESSION["Contact_Name"]:""?>
Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...