for the success box, the insert creates a session variables named:
pcms2_Newsletter_UserID
use an if statement to check if that session is set to show the success message:
<?php if(isset($_SESSION['pcms2_Newsletter_UserID']) && $_SESSION['pcms2_Newsletter_UserID'] != "") { ?>
Success message here
<?php } ?>
and add the following code at the bottom of the page to reset the session:
<?php if(isset($_SESSION['pcms2_Newsletter_UserID'])) unset($_SESSION['pcms2_Newsletter_UserID']); ?>
i tride what you said. the erorr box appears on page load even when there is no info in data base when you add your information, the error box disappesars and the thank box is shown.
also in the validation show if validation page, is there a way to make it self because this form will be on all the pages
here is a link to show what im talking about thanks i believe im finnally close
index.php