when checkbox is clicked email is necessary and if checkbox is not clicked email is not necessary for submitting a button give me the code..
I created name, email id, phone.. Then checkbox and submit button..
when checkbox is clicked email is necessary and submit the form and details going to mail id.. if checkbox is not clicked email is not necessary for submitting a form, it will be submit to maid id..
So i want simple html, js, and php code