Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

showing the images

New Here ,
Jun 26, 2008 Jun 26, 2008
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
TOPICS
Getting started
314
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 26, 2008 Jun 26, 2008
Something more complicated then <img src="stars_#form.ProductRating#.gif"/>?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 26, 2008 Jun 26, 2008
LATEST
ok thanks.i will try it.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources