I'm trying to use this function to update a session registered array, but rather than redirecting to the next page at the end of the function, the array is not updated and it simply reloads the same form.
function processStepThree($overview,$industry,$curr_client_profile,$targ_client_profile,$goals) {
session_start();
$_SESSION['merge_arrays'] = array(
'overview' => $overview,
'industry' => $industry,
'curr_client_profile' => $curr_client_profile,
'targ_client_profile' => $targ_client_profile,
'goals' => $goals
);
$_SESSION['form_array'] = array__merge($_SESSION['form_array'], $merge_arrays);
$_SESSION['step_three'] = "complete";
header("Location: /step_four/");
};
Am I going about this the wrong way?
Nelson