I want to make it to so if my form is submitted then then the checkbox should be checked.
Here is what I have:
<input type="checkbox" id="chk" <?php if ($_POST['submit']){ echo checked } ?> />
HTML:
<form id="form1" enctype="multipart/form-data" action="" method="post">
//Stuff here
<input name="submit" type="submit" value="Upload" />
</form>
I am getting a blank page when I test it... Any help will be appreciated.