I wrote a php code that display error in red color. But somehow, this doesn't seem to work out. Here's my code:
<?php
...
if(!$name || !$email || !$contact || !$itemid){
//if not display an error message
echo "<span style="color: red;" /><center>Fields marked with <strong>( * ƥ</strong> are mandatory!</center></span>";
}else{...
?>