Hello,
My first time here, so I hope some of you guys can help me.
Here goes...
I have a simple form that will (eventually) write the contents to a MySql db. I have a standard js that validates. The problem is that the first field is validated fine but the subsequent ones are not and the php then attempts to write the form values.
an abbreviated view of my code is..
<html>
<head>
... javascript validation stuff...
</head>
<body>
<?php
if ($submit) {
....php updates....(not relevant for this problem)
} else{
?>
<form method="post" action="<?php echo $PHP_SELF?>" onSubmit="return check(this)">
.... html form....
</form>
<?php
}
?>
</body>
</html>
What am I missing ?
If this brief example is not sufficient then please reply and I will send you the full version.
Any help is greatly appreciated.