evachick156
New member
Here is this php function:
function Hilight($val1, $val2){
$return = "";
if($val1 == $val2){
$return = " style='background-color:blue'";
}
return($return);
}
Here is my php code:
$teach = "cat";
echo("<option value='cat'><font " . Hilight("cat",$teach) . ">"
cat
</font></option>");
This code should make cat hilighted with blue so why does it not work?
function Hilight($val1, $val2){
$return = "";
if($val1 == $val2){
$return = " style='background-color:blue'";
}
return($return);
}
Here is my php code:
$teach = "cat";
echo("<option value='cat'><font " . Hilight("cat",$teach) . ">"
cat
</font></option>");
This code should make cat hilighted with blue so why does it not work?