You guys are gonna think I'm crazy but the following fied everything:
I put...
<?php require_once('WA_Globals/WA_Globals.php');?>
<?php require_once("WA_ValidationToolkit/WAVT_Scripts_PHP.php"); ?>
<?php require_once("WA_ValidationToolkit/WAVT_ValidatedForm_PHP.php"); ?>
<?php require_once("WA_Universal_Emai.........
THROUGH
.............Mail All Entries
if ("index.php"!="") {
header("Location: thankyou.php");
}
}
?>
All above the DOCTYPE line.
I then put all of the (script and functions):
<script type="text/javascript">
<!--
function WAtrimIt(theString,leaveLeft,leaveRight) {
if (!leaveLeft) {
while (theString.charAt(0) == " ")
theString = theString.substring(1);
}
if (!leaveRight) {.........
THROUGH
......ument.WAFV_Focus = false;
document.WAFV_Error = false;
document.WAFV_InvalidArray = false;
}
}
//-->
</script>
INSIDE the head tags.
All works fine.