This may be hard to follow.
I need to pass data from page to page. Follow me on this:
Page 1: Keyin data for main record (this is where the 1st $post data comes from)
Page 2: If certain check box is "N", go to page 5.
else
Page 3: Keyin more data.
Page 4: Write record and save new values for original record
Page 5: Write/Update main record
I need to keep the $_POST data but it does not seem to work.
On page #2 when the check box is "Y", I tried
$work = $_POST['Add_Name_1'];
$_POST['Add_Name_1'] = $work;
But when I get to page #3, I get
Notice: Undefined index: Add_Name_1 in /home/langsyst/public_html/lansco/Contact_Insert.php on line 12
Line 12 is :
echo "Post 1 = ".$_POST['Add_Name_1']."<br>";
Thanks
Our community of experts have been thoroughly vetted for their expertise and industry experience.
The Most Valuable Expert award recognizes technology experts who passionately share their knowledge with the community, demonstrate the core values of this platform, and go the extra mile in all aspects of their contributions. This award is based off of nominations by EE users and experts. Multiple MVEs may be awarded each year.