Can anyone please tell me how to execute a section of code only if certain variables apply. And another bit of code if it doesn’t.
Thanks
If I understand your question correctly, you can use isset to determine if a variable is available.
Read this: isset PHP docs
Thanks,
Sean.
Sounds more like you just need to use an if statement.....
if ($myVariable == "on") { do this stuff........ } else { do that stuff.......... }