Skip to main content
Known Participant
June 26, 2008
Question

showing the images

  • June 26, 2008
  • 1 reply
  • 352 views
Hi;I have 5 radio buttons:
<input id="rbFive" type="radio" name="ProductRating" value="5" /><img src="stars-5.gif">
<input id="rbFour" type="radio" name="ProductRating" value="4" /><img src="stars-4.gif">
<input id="rbThree" type="radio" name="ProductRating" value="3" /><img src="stars-3.gif">
<input id="rbTwo" type="radio" name="ProductRating" value="2" /><img src="stars-2.gif">
<input id="rbOne" type="radio" name="ProductRating" value="1" /><img src="stars-1.gif">

now on the result page which comes from a query I need to show "stars_5.gif" if the value of the radiobutton is 5.
showing "stars-4.gif" if the value is 4,.....
how can I write a code for that?
thanks
This topic has been closed for replies.

1 reply

Inspiring
June 26, 2008
Something more complicated then <img src="stars_#form.ProductRating#.gif"/>?
Known Participant
June 26, 2008
ok thanks.i will try it.