I'm trying to cause a variable $btn1Pressed
to be set via a URL load. For example, loading http://mywebsite.com/myphp.php?btn1Pressed=1
would set the variable to 1
. The below test code doesn't seem to be doing anything:
<?php
if ($btn1Pressed == 1) {
echo 'Button One Pressed';
}
else{
echo 'Button Two Pressed';
}
?>