Hello. I am new to php but not to c++;
I'm trying to use a submit button to run some html divs and some gui.
here is an example of this , very basic.
$hourglass1 = strip_tags($_POST['hourglass1']);
if($hourglass1){
echo" MY DIV CONTAINERS";
}
The problem is when i try to click anything else, it sets $hourglass1 back to false again and the div containers that were up close again. In c++ to avoid this, i would predefine variables. This way the variables would remain set. I tried to look this up for php but I do not know what to call it.
Also when If i do something like this , it will be a problem.
$hourglass1 = strip_tags($_POST['hourglass1']);
if($hourglass1){
$intvalue++;
}
$intvalue will only equil 1 until i click anything else. How can i make $intvalue stay at 1 until i tell it to change? thanks all