I am curious on how to interpret this same tutorial, but how can I use this to convert XML to PHP to display the stars. Tutorial
Here is my code:
<form action="xmlprocessad.php" method="POST" id="myform">
  <div class="step4-inputs">
      <input type="text" name="newrating">
          <span class="stars">**Class that displays stars**
               <span></span>
           </span>
       </input
   </div>
</form>
Here is the JQuery Code :
$(function() {          
  $('.submit-btn3').click(function() {
  $('p').html('<spanclass="stars">'+parseFloat($('input[name=newrating]').val())+'</span>');
            $('span.stars').stars();
        });         
        $('.submit-btn3').click();
    });
    $.fn.stars = function() {
        return $(this).each(function() {
            $(this).html($('<span />').width(Math.max(0, (Math.min(5, parseFloat($(this).html())))) * 16));
        });
    }
For some reason though, it won't convert my numbers to this star image, can someone please help me understand why? Thank you!