how do i say if whatever = 50 then this happends?
Thanks Anthony
Little sample:
$whatever = 10; // set the variable whatever to be 10
if ($whatever == 50) // is whatever equal to 50 { // put whatever you want to happen here }
That's really it. Use the double equal to check equality. It's the same as in C/C++.
If you expect the variable from outside your current page you should also test it to be present with
if (empty($whatever)) { // this tells you the variable does not exist } else ...........