Quantcast
Channel: PHP Freaks: PHP Help
Viewing all articles
Browse latest Browse all 13200

Scope question

$
0
0

Simple question about scope.

 

I want to run different sql statements depending on a boolean value in a variable.  The value would flip back and forth depending what the user is doing.  What/where is the best way to initialize this variable (initially false).  The page might reload (on a submit or whatever), but I want the variable to remember it's value.

 

Thanks.


Viewing all articles
Browse latest Browse all 13200

Trending Articles