Okay im posting this again as i got no response from my last message.
All im trying to do is 2 things.
1. set the form so if all fields are validated it will post to another page.
2. if the form has never been submitted dont show the error messages. THATS IT.
Please help.
here is a SMALL piece of my code cut down so its no so hard to deal with. Thanks for any help.
<head>
<form method="POST" name="Signup" action="validate.php">
<!-- Begin Validation for First and last name -->
<? if ($FirstName=='') { ?>
<p><font face="Arial" size="2" color="#FF0000">No First Name Entered. Please Enter your First Name</font><br>
<? }?>
<? if ($LastName=='') { ?>
<font face="Arial" size="2" color="#FF0000">No Last Name Entered. Please Enter your Last Name</font></p>
<? } ?>
<? if(($FirstName == '') or ($LastName == '')){
$error=$error+1; ?>
<font class="sbd" size="2" face="Arial">First Name</font>
<input type="text" class="Wf" name="FirstName" size=23 maxlength=40 style="background:#D7D7D7" value="<? print ("$FirstName"); ?>">
<td bgcolor="#D7D7D7" rowspan=2 width="256"><font class="s" size="2" face="Arial">Your full name will be sent with all outbound mail messages.</font>
<font class="sbd" size="2" face="Arial">Last Name</font>
<input type="text" class="Wf" name="LastName" size=23 maxlength=40 style="background:#D7D7D7" value="<? print ("$LastName"); ?>">
<? } else { ?>
<input type="hidden" name="FirstName" value="<? print ("$FirstName"); ?>">
<input type="hidden" name="LastName" value="<? print ("$LastName"); ?>">
<? } ?>
<!-- End Validation for Firstname and lastname -->
<input type=image src="signup-register1.gif" name="Submit" border=0 onMouseOver="src='signup-register2.gif'; statusBarMsg('Register as a new KubeMail user');" onMouseOut="src='signup-register1.gif'; statusBarMsg(current);">
<a href="http://www.kubemail.com" onMouseOver="cancel.src='cancel2.gif'; window.status='Cancel the Registration'; return true" onMouseOut="cancel.src='cancel1.gif'; window.status=current; return true"><img name=cancel src="cancel1.gif" border=0></a></td>
</form>
</body>