Actually I want to include a file if the checkbox is checked
<?php
$checked = get_option('automatic') ? "checked='checked'" : "";
echo "<input type='checkbox' name='automatic' $checked />";
?>
if(get_option('automatic') == 'checked')) ( require_once 'myfile.php'; )
This form is in a plugin option page
Is this what you mean?
Surely not?
You may want to check out this tutorial.
An example:
I will not take more if your time. I just need to know why my function inside the IF statement is not working. If I place it somewher without the IF staememt it work wonderfully