This is from part of a script I am having problems with, here is the area with the problem:
...
<select name=\"rating\">";
for($x = 1; $x <= 10; $x += 0.1) {
echo "<option value=\"$x\""; if ($this->rating == $x) { echo " selected"; } echo ">$x";
}
echo " </select>
..
Basically the problem is the part where it echos, "selected". It does not actually work since currently $this->rating is 10 and the select input bar is staying on 1. How do I get it to work. Thanks in advance.
Josh.