tm1000/Caller-ID-Superfecta — comment on commit 43ea99eaad2b11864b5cf43b0460f4abf48bc001
File: page.superfecta.php line 262
By ukstevef:

OK, after a bit of debugging it looks like checkbox values are not posted if they are empty.
You can prove this by putting
```if(count($_POST))
{
print("

Posted data - start

");
var_dump($_POST);
print("

Posted data - end

");
}```

This will dump all the post variables, try saving the form with the checkbox set, and you will see it.

I added the checkbox locally with
```
```

You can then check ```isset($_POST['cache'])``` and then issue your SQL.

the javascript function toggleCache has
```function toggleCache(ctlCache)
{
if(ctlCache.checked)
{
ctlCache.value = 'on';
}
else
{
ctlCache.value = 'off';
}
}```