Hello all, I'm new to coding, having used a WYSIWYG program in the past. I'm more of a design person than a coding person, so my apologies in advance.
Here is a simple form I created that has a print and submit button. It submits data to a MySql database and send an email to a distribution list. It also auto-responds back to the sender. It works fine in IE,Safari and Firefox, but refuses to submit in Google Chrome. It goes to the print screen, but won't go any further.
Having done some research, I think I'm leaving off a piece of code that only Chrome needs and it may have something to do with return false; but I can't figure out where to put it or how to make print and submit function work in chrome when it works fine in the other browsers. Any help would be much appreciated.
I've only included the function event and the button script code. Please advise if you need to see more of the code. Thank you so much!
<?php
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8">
<title>JadeTurtle Designs</title>
<script language="javascript" type="text/javascript">
function PrintMeSubmitMe()
{
window.print();
SubmitMe();
}
function SubmitMe()
{
document.MyForm.submit();
}
</script>
</head>
<body>
<input type="submit" id="contactButton1" onclick="PrintMeSubmitMe(this);return false;" name="" value="Send" style="position:absolute;left:423px;top:580px;width:96px;height:25px;z-index:12;" tabindex="11">
</div>
</body>
</html>