close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

post to thank you page

Thread began 9/15/2015 10:18 am by BjB | Last modified 9/15/2015 1:56 pm by Ray Borduin | 147 views | 2 replies |

BjB

post to thank you page

I have a form with an Email Address field in it. When I submit the form it takes you to a thankyou.php page. On the thankyou.php page I'm trying to show the email address that was entered using the code below, but nothing shows up.

I have this code on the form page:
<?php $myemail = $_POST['Email_Address']; ?>


And this code on the thank you page:
<?php $myemail = $_POST['Email_Address']; ?>
<?php echo $myemail; ?>

What am I doing wrong?

Sign in to reply to this post

Ray BorduinWebAssist

The form posts to itself and then redirects to the thank you page, so you can't refer to the form post on the thank you page directly.

The solution is to save the email address into the session on the top of the email page so you can retrieve and display it from the session on the thank you page. You can use the webassist "Persist Form" to save the entire submitted form to the session and retrieve it that way, or just use the "Set Session Value" server behavior to set a single session variable from the email field.

Sign in to reply to this post

BjB

Got it! Don't know why I didn't think of that.

Thanks

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