PDA

View Full Version : Star rating script



khagler
09 Nov 2011, 04:44 PM
I am trying to implement a Star rating script to a page. The thing is, I have multiple items I want to make ratable all within the same page. How can I add multiple star systems to one page?

khagler
09 Nov 2011, 04:50 PM
I would even be content using a form. Say I use the below form for each item on the page that I want users to rate, would I then need to create a different php file to store each individual rating?

<form method="post" action="store-rating.php">
<input type="hidden" name="item_id" value="cat photo 1">
<input type="select" name="rating">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select>
<input type="submit" value="Rate This">
</form>

So, in other words, would each individual form have a different action, i.e.

action="store-rating.php"
action="store-rating1.php"
action="store-rating2.php"
action="store-rating3.php"
etc.


???