image rating type thing?
Posted: Thu Mar 23, 2006 6:24 pm
I have no clue how to do this, but I want were you can leave comments and in the comment theres 5 stars above it were you can rate it, I dont want radiobuttons I want it to be able to click which star you want and it to be in a variable when the form data is submitted kinda like this code below but I want the image to change colors like if you click the first one only the first star is litup, click the second star the second and first star is, and so on:
Code: Select all
<form action="vote.php" method="post">
<input type="radio" name="vote" value="1">1 star<br>
<input type="radio" name="vote" value="1">2 star<br>
<input type="radio" name="vote" value="1">3 star<br>
<input type="radio" name="vote" value="1">4 star<br>
<input type="radio" name="vote" value="1">5 star<br>
<textarea name="body"></textarea><br>
<input type="submit" value="Leave Comment">
</form>