ok i've prolly made a really dumb mistake (nothing new there) but i have an html form that posts to a php document for errorhandling.
ok then that php throws out this generic html with php embedded containing the error message how do i make a variable that can possibly contain 1 of 12 different things
if(!$pos){
$mistake = '*Position* is a required field. Please go back and insert a value.';
include 'input_error.php';
}
if(!$dept){
$mistake = '*Department* is a required field. Please go back and insert a value.';
include 'input_error.php';
}
thats a small part of what i have and then the page that is supposed to display the error contains the code:
<?php echo = $mistake ?>
could someone please help me out?