Hi,
I have been trying to change the font colour within a text box. I have used a hidden box with echo but want to display within the box to continue the theme of my forms. I am stuck and been trying different methods, but with no joy any help would be greatly appreciated. current code this not working is
<? echo "";
if ($percentage >= 87.5) {
$color = '#00FF00';
} elseif ($percentage >= 37.5) {
$color = '#ff9900';
} else {
$color = 'red';
}
?>
<input type="text" name="percentage" value="<? echo '<b style="color:' . $color . '">' . $percentage . '</b>'; ?>">
thanks roscor