Like a typical newb, I have spent all day trying to solve what is surely very simple for someone who knows how.
I need ti pass the current value of a variable from one script to another script. I have tried to do it using session variables, i.e.
pass the current value of
$pages[$x]['keywords'] using
$_SESSION['emailad']= $pages[$x]['keywords'];
and this works the very first time the variable is passed, but then the value of $_SESSION['emailad'] is set in stone. It passes the same value that it did the first time on subsequent calls to the receiving script instead of what the current value should be.
I cannot use anything that destroys or unsets all session variables because the are other session variables used by other scripts. Could anyone provide some example code for what I am trying to do?
😕