Hi,
I am currently working on 127.0.0.1/ch02/PHPPaycheck2.html and127.0.0.1/ch02/phpPaycheck2.php.
<!php if (!empty($_POST['firstName'])){
$firsName = $_POST['firsName'];
}else{
$firsName =NULL;
echo '<p class="error">You forget to enter your first name. Please go back and fill out the form again </p>'
?>
An error message "You forget to enter your first name. Please go back and fill out the form again" displays next to <td colspan="2"> First Name</td> in the table of paycheck2.php.
My question is how to make the error massage displaying a separate web page as shown your php textbook page 53-a. but, URL should be in 127.0.0.1/ch02/phpPaycheck2.php. That is an assignment due on this Sunday. If you provide me a clue, that will help me a lot. Thank you.