I created an error page for my form however I can't get it to pop up when making errors filling out form. Any help would be great. Thanks.
(start of page)(errorpage)
<?php
session_start();
$error = $_SESSION[error];
?>
(generated Html for my form)
<FORM name="Register" method="POST" action="action.php" enctype="multipart/form-data">
<INPUT type="text" style="position:absolute;left:60px;top:51px;width: 216px;z-index:5" size="27" name="Name-RA" value="">
<INPUT type="text" style="position:absolute;left:59px;top:99px;width: 216px;z-index:6" size="27" name="Address-RC" value="">
<INPUT type="text" style="position:absolute;left:59px;top:150px;width :144px;z-index:7" size="18" name="Phone-RN" value="">
<INPUT type="text" style="position:absolute;left:58px;top:199px;width :200px;z-index:8" size="25" name="Email-e" value="">
<INPUT type="text" style="position:absolute;left:57px;top:248px;width :200px;z-index:9" size="25" name="Type-B" value="">
<INPUT type="text" style="position:absolute;left:60px;top:298px;width :120px;z-index:10" size="15" name="Date-N" value="">
<DIV style="position:absolute;left:38px;top:76px;width: 87px;height:20px;z-index:11" align="left">
<FONT style="font-size:19px" color="#000000" face="Footlight MT Light">Address:</FONT>
</DIV>
<DIV style="position:absolute;left:36px;top:124px;width :160px;height:20px;z-index:12" align="left">
<FONT style="font-size:19px" color="#000000" face="Footlight MT Light">Phone:</FONT>
</DIV>
<DIV style="position:absolute;left:35px;top:173px;width :68px;height:20px;z-index:13" align="left">
<FONT style="font-size:19px" color="#000000" face="Footlight MT Light">Email:</FONT>
</DIV>
<DIV style="position:absolute;left:37px;top:222px;width :126px;height:20px;z-index:14" align="left">
<FONT style="font-size:19px" color="#000000" face="Footlight MT Light">Type of Event:</FONT>
</DIV>
<DIV style="position:absolute;left:36px;top:274px;width :150px;height:20px;z-index:15" align="left">
<FONT style="font-size:19px" color="#000000" face="Footlight MT Light">Date of Event:</FONT>
</DIV>
<INPUT type="submit" name="submit" value="Register" style="position:absolute;left:42px;top:447px;width :125px;height:34px;z-index:16">
<DIV style="position:absolute;left:39px;top:25px;width: 87px;height:20px;z-index:17" align="left">
<FONT style="font-size:19px" color="#000000" face="Footlight MT Light">Name:</FONT>
</DIV>
<TEXTAREA name="Comments-H" style="position:absolute;left:59px;top:366px;width :226px;height:63px;z-index:18" rows=3 cols=25></TEXTAREA>
<DIV style="position:absolute;left:38px;top:332px;width :150px;height:20px;z-index:19" align="left">
<FONT style="font-size:19px" color="#000000" face="Footlight MT Light">Comments:</FONT>
</DIV>
<INPUT type="reset" name="Reset" value="Clear Form" style="position:absolute;left:191px;top:446px;widt h:125px;height:34px;z-index:20">
</FORM>
I have no hidden fields and both the errorpage and the contact are .PHP
My thank you page works but no matter what you type in the fields on the form it send data to my email. Thanks in advance.
MH
(start of page)(errorpage)
<?php
session_start();
$error = $_SESSION[error];
?>
(generated Html for my form)
<FORM name="Register" method="POST" action="action.php" enctype="multipart/form-data">
<INPUT type="text" style="position:absolute;left:60px;top:51px;width: 216px;z-index:5" size="27" name="Name-RA" value="">
<INPUT type="text" style="position:absolute;left:59px;top:99px;width: 216px;z-index:6" size="27" name="Address-RC" value="">
<INPUT type="text" style="position:absolute;left:59px;top:150px;width :144px;z-index:7" size="18" name="Phone-RN" value="">
<INPUT type="text" style="position:absolute;left:58px;top:199px;width :200px;z-index:8" size="25" name="Email-e" value="">
<INPUT type="text" style="position:absolute;left:57px;top:248px;width :200px;z-index:9" size="25" name="Type-B" value="">
<INPUT type="text" style="position:absolute;left:60px;top:298px;width :120px;z-index:10" size="15" name="Date-N" value="">
<DIV style="position:absolute;left:38px;top:76px;width: 87px;height:20px;z-index:11" align="left">
<FONT style="font-size:19px" color="#000000" face="Footlight MT Light">Address:</FONT>
</DIV>
<DIV style="position:absolute;left:36px;top:124px;width :160px;height:20px;z-index:12" align="left">
<FONT style="font-size:19px" color="#000000" face="Footlight MT Light">Phone:</FONT>
</DIV>
<DIV style="position:absolute;left:35px;top:173px;width :68px;height:20px;z-index:13" align="left">
<FONT style="font-size:19px" color="#000000" face="Footlight MT Light">Email:</FONT>
</DIV>
<DIV style="position:absolute;left:37px;top:222px;width :126px;height:20px;z-index:14" align="left">
<FONT style="font-size:19px" color="#000000" face="Footlight MT Light">Type of Event:</FONT>
</DIV>
<DIV style="position:absolute;left:36px;top:274px;width :150px;height:20px;z-index:15" align="left">
<FONT style="font-size:19px" color="#000000" face="Footlight MT Light">Date of Event:</FONT>
</DIV>
<INPUT type="submit" name="submit" value="Register" style="position:absolute;left:42px;top:447px;width :125px;height:34px;z-index:16">
<DIV style="position:absolute;left:39px;top:25px;width: 87px;height:20px;z-index:17" align="left">
<FONT style="font-size:19px" color="#000000" face="Footlight MT Light">Name:</FONT>
</DIV>
<TEXTAREA name="Comments-H" style="position:absolute;left:59px;top:366px;width :226px;height:63px;z-index:18" rows=3 cols=25></TEXTAREA>
<DIV style="position:absolute;left:38px;top:332px;width :150px;height:20px;z-index:19" align="left">
<FONT style="font-size:19px" color="#000000" face="Footlight MT Light">Comments:</FONT>
</DIV>
<INPUT type="reset" name="Reset" value="Clear Form" style="position:absolute;left:191px;top:446px;widt h:125px;height:34px;z-index:20">
</FORM>
I have no hidden fields and both the errorpage and the contact are .PHP
My thank you page works but no matter what you type in the fields on the form it send data to my email. Thanks in advance.
MH
Comment