From my best understanding, i feel you need to manage status flag while moving from one page to another.
For this you may use Session variable and initialize it with ‘not complete’ and manipulate it accordingly.
For example :
$_SESSION['Status']='not complete';
function menu()
{
if(status1 == true)
{
$_SESSION['status'] = 'complete';
}
else
{
echo 'not complete';
}
}
Hope it helps!
4
solved Change status from not complete into completed PHP