Ok, so I am an old dog learning new tricks, but I have never worked in web development before.
I have a web app idea that I would like to try and have done a lot of work building my skillset and I can manage the
components individually (html/javascript/mySQL/PHP), but it is bringing it together where I am having issues.
I do not want to make a fatal decision right off the bat as web and security are kind of important.
My issue at this time is related to passing variables from program to program (globals of course).
I prefer to start from the very start of course.
How do I securely store variables in memory and pass them from program to program. I tried this in a quick php program..
if (isset($glob_x)){
echo "glob x has a value of $glob_x";
}
else{
global $glob_x;
echo "initializing glob X";
$glob_x = 0;
}
$glob_x = $glob_x + 3;
echo "x = $glob_x";
When I call the PHP program from the HTML page, it does not carry the value from one activation to the next. So my variable glob_x does not increment as I want it to.
I aplogize for my noobishness :p