Hi,
I have a sign up page which shows your errors filling out the page when you click submit, it posts all the necessary info to sign up.
However the info that shows your errors shows as soon as the page is opened, I only want them to show when you click the submit button.
All I really need to know is, is there some kind of: hasBeenPosted() function in PHP to check if I should show the errors.
Example:
Any thoughts?
I have a sign up page which shows your errors filling out the page when you click submit, it posts all the necessary info to sign up.
However the info that shows your errors shows as soon as the page is opened, I only want them to show when you click the submit button.
All I really need to know is, is there some kind of: hasBeenPosted() function in PHP to check if I should show the errors.
Example:
PHP:
<?php
if (pageHasBeenPosted()) {
if ($userError) { //if there is an error with the users username
echo '<error>'.$userErrorMessage.'</error>';
}
}
?>
Any thoughts?