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