Having trouble with posting the code's. I hope this is better? I have a contact form that after filling out and clicking send, it doesn't clear the form, you can just keep clicking send and it keeps on sending.
if (isset($_POST['submit'])) {
Having trouble with posting the code's. I hope this is better? I have a contact form that after filling out and clicking send, it doesn't clear the form, you can just keep clicking send and it keeps on sending.
if (isset($_POST['submit'])) {
you can do this with jquery
jQuery(document).ready(function($){
// on submit...
$("#contactForm #submit").click(function() {
$("#error").hide();
(...here your setting..)
function success(){
$("#sent-form-msg").fadeIn();
$("#contactForm").fadeOut();
}
return false;
});
and add this script to your html form :
<!-- form -->
<script type="text/javascript" src="link of script"></script>
i hope that help you
As I see in the end you send a mail, I belive you must after that reload the page so the form apear with no data in it.