Placing fields in success webpage. -...

User 2887076 Photo


Registered User
3 posts

:/Sorry if this has already been covered but I can't find the answer. Built my "Contact Us" form with WFB and it works great. On the confirm page I have it redirecting to a success page and again that works. I would like to insert fields on this page from the form. So I could do something like Thank you 'Mr' (salutation from form) 'Name' (name from form). I used to do this with forms to go but don't know where to start with WFB.

Regards John
User 2887076 Photo


Registered User
3 posts

I read in the "Important Annoucements" we are supposed to put a link to the website. My form is working I just want to know how to show some fields on the success page.

Here is a link to the home page http://www.superior-systems.co.uk
and here is a link to the page with the form on http://www.superior-systems.co.uk/html/ … _form.html

Regards John
User 187934 Photo


Senior Advisor
20,181 posts

Hi John,
If your redirecting you can grab the $_SESSION variables.
<?php
session_start();
$post = $_SESSION['post']; // This gets the entire array of form var.
echo $post['textarea2'].'<br>';// This is grabbing individual var from the array per your field names
echo $post['text3'].'<br>';
echo $post['text4'].'<br>';
echo $post['tel6'].'<br>';
echo $post['email1'].'<br>';
// Unset the variables
unset($_SESSION['textarea2']);
unset($_SESSION['text3']);
unset($_SESSION['text4']);
unset($_SESSION['tel6']);
unset($_SESSION['email1']);
?>
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2887076 Photo


Registered User
3 posts

Eric Rohloff wrote:
Hi John,
If your redirecting you can grab the $_SESSION variables.
<?php
session_start();
$post = $_SESSION['post']; // This gets the entire array of form var.
echo $post['textarea2'].'<br>';// This is grabbing individual var from the array per your field names
echo $post['text3'].'<br>';
echo $post['text4'].'<br>';
echo $post['tel6'].'<br>';
echo $post['email1'].'<br>';
// Unset the variables
unset($_SESSION['textarea2']);
unset($_SESSION['text3']);
unset($_SESSION['text4']);
unset($_SESSION['tel6']);
unset($_SESSION['email1']);
?>


Thanks for that. I am not an expert in coding. I am using Netobjects for my web designs. I have put this code in a text box as HTML (ctrl+T) but it just displays the code as text and not the field.

This is what I get:-

Thank You!

Your enquiry has been successfully submitted ';// This is grabbing individual var from the array per your field names echo $post['text3'].'
'; echo $post['text4'].'
'; echo $post['tel6'].'
'; echo $post['email1'].'
'; // Unset the variables unset($_SESSION['textarea2']); unset($_SESSION['text3']); unset($_SESSION['text4']); unset($_SESSION['tel6']); unset($_SESSION['email1']); ?>.

What am I doing wrong?

Regards John
User 187934 Photo


Senior Advisor
20,181 posts

Possibly, Make sure your host is setup to parse html inside php
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.