 $(document).ready(function(){ 
 $('input[name="Enter_h"]').click(function(event){	
 var id = this.id;
     $.ajax({	
      type: "POST",
      url: "submit_form_home.php",
      data: "name="+$("#name_h").val()+"&email="+$("#email_h").val()+"&contact="+$("#contact_h").val()+"&service="+$("#service_h").val()+"&description="+$("#description_h").val()+"&letters_code="+$("#word_verify_h").val(),
      success: function(msg){	alert(msg);	
     if(msg == 'Your message has been posted successfully.'){	
		 window.location.replace("thankyou.php");
     } 
      }
    });
   });
 });