Forum Moderators: open
The following drastically cut down fragment shows the behavior. Notice that there is no submit button or call to submit() in this example, but is submits anyway when the button is pressed.
Ideas?
<html>
<head>
<title>Order test</title>
<script type="text/javascript">
function vfy() {
alert(document.forms[0].elements[0].value);
}
</script>
</head>
<body>
<h1>Test</h1>
<form action="any.pl" method="post">
Name:<input name="Name" size="40"><button onclick="vfy();">Process order</button>
</form>
</body>
</html>