I have a form thats lets users register. Now im trying to check to see if their EHPID is in my database. i have it working but it shows a javascript alert window and redirects the user to the form and wipes out the information. Can you provide me with an example on how to use php echo self to have the message appear on the form, or any tips. Below is a form
echo ' <script language = "javascript">
alert("You have already registered. Please try another EHPID")
</script>';
print '<meta http-equiv="refresh" content="0;URL=register2.html">';
FORM
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
</head>
<body>
<form method="POST" action="--WEBBOT-SELF--">
EHP ID <input type="text" name="T1" size="20"></p>
<p>Last Name: <input type="text" name="T2" size="20"></p>
<p> </p>
<p> </p>
<p><input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></p>
</form>
</body>
</html>