the only problem with this is that
test@test.com could be a valid email address. you could try this link
http://www.hotscripts.com/Detailed/16824.html
to find a script that will validate the entries
you can use the script below to make sure fields are filled in
<script language="javascript">
<!--
function checkfields()
{
if (document.simpleform.name.value=="")
{
alert("Please enter your name.");
}
else
{
location.href="formthankyou.html";
}
}
-->
</head>
<body>
<form name="simpleform">
Name: <input type="text" size="20" name="name">
<input type="Button" value="Submit" name="Submit" onclick="checkfields()">
</form>
</body>
just add whichever fields you may require