<?php
$post = $_SESSION['post']; // This is getting the post array
$number = $post['number']; // This is getting my number input name from the array called "number"
$dropdown = $post['dropdown']; // This is getting my dropdown name from the array called "dropdown"
// Add more as needed for each input on your form. Adjust to your input name.
Can this be applied to a multi-part form?
Let's say Form1 collects their name and then redirects to Form 2. Form 1 variables are stored in $_SESSION['post'] and can be displayed on another page.
session_start();
// POST FROM FORM1
$post = $_SESSION['post']; // This is getting the post array
echo $post['name'].'<br>';
Form2 collects their address and phone numbers. When submitting Form2, will it simply add the additional variables to $_SESSION['post']?
I tried this, and so far I've not been able to get it to work. When I try to echo the results, the new fields that should be in the SESSION have no data.
session_start();
// POST FROM FORM2
$post = $_SESSION['post']; // This is getting the post array
echo $post['address'].'<br>'.$post['city'].', '.$post['state'].' '.$post['zip'];
I'm wondering if someone has additional input to point me in the right direction.
I provide personalized help for Coffeecup Users including personal or group training for Site Designer, Web Form Builder and more via Zoom.
Email me at support@uscni.org or call 865-687-7698.
Did you know that Web Form Builder can be used for both simple and complicated forms and that it's not limited to the default fonts and buttons? Take a look at a form we developed for WindowTinting.com.
https://forms.windowtinting.com/forms/w … ppingcart/