This is content of in.header.php
if(!isset($session_id) || empty($session_id)) {
session_start();
$_SESSION["Inputs"]=array();
}
This is index.php which also has form objects that POSTs other values to step1.php
require_once 'inc.header.php'
$_SESSION["Inputs"]["name"]="MyName";
$_SESSION["Inputs"]["surname"]="MySurname";
This is step1.php
require_once 'inc.header.php'
$_SESSION["Inputs"]["age"]=$_POST["textboxAge"];
print_r($_SESSION["Inputs"]);
Problem is print_r prints only Array ()
. I cannot see name, surname and age.
What do i miss?
Thanks in advance