Ive tried that and it wont work. The error message is displayed through the external PHP processing script. so if the user doesnt enter the correct number for the form validation they get an error message. I want to post a warning sign to get their attention. Here is the block of code
if (isset($_POST['txtNumber'])) {
$number = $_POST['txtNumber'];
if (md5($number) == $_SESSION['image_random_value']) {
//Mail the form
mail($sendto,$subject,$body,$headers);
header("location:http://www.sono-tek.com");
exit;
} else {
echo "<table bgcolor=#CCCCCC border=1 bordercolor=#000000 align=center width=45%>
<tr>
<td align=center><font color=#FF0000 size=+1>ERROR:</font></td>
</tr>
<tr>
<td align=center>The validation number you entered is incorrect, please use the back button on the browswer window to go back and enter the correct number, thank you.</td>
</tr>
</table>";
}
}
I want the image to display next the ERROR in the else statement.