logo-dw

Go Back   Dreamweaver Club Forums > Hand Coders Forum > Javascript and JS frameworks
Register FAQ Members List Search Today's Posts Mark Forums Read

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 12-11-2009, 08:24 PM   #1
woofy
woofy's Avatar
 
Join Date: Dec 2007
Location: San Diego
Posts: 57
Default Get Javascript into a hidden PHP field

I am trying to figure this out, you can see the sample of what I am working on here , basically it's the star rating bar, the functionality is working as far as looks but what I need it to do is insert the value of the star clicked into a hidden field I have so that when the user clicks submit, it will upload this value to my database, don't have a clue what to do here but I am assuming it would be something I need to enter in this area of the script

Code:
<li class="current-rating" style="width:50%;">Currently 2.5/5 Stars.</li>
                   <li><a href="#" title="1 star out of 5" class="one-star">1</a></li>
                      <li><a href="#"  title="2 stars out of 5" class="two-stars">2</a></li>
                      <li><a href="#"  title="3 stars out of 5" class="three-stars">3</a></li>
                      <li><a href="#"  title="4 stars out of 5" class="four-stars">4</a></li>
                      <li><a href="#"  title="5 stars out of 5" class="five-stars">5</a></li>
                  </ul>
                    <input name="hiddenFieldID" type="hidden" id="hiddenFieldID" value="0" /></td>
                  <td width="60" rowspan="2" valign="middle"><input name="rateSUBMIT" type="submit" id="rateSUBMIT" value="SUBMIT" />
Any help would be greatly appreciated.
woofy is offline   Reply With Quote
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:45 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com