title: Data Collection from Jquery
body: <p>How i can get the data selected data from jquery and pass it to the other page,page2.php to page3.php.I just want to save it in a variable and post it,from page3.php i will grab the data.</p>
  
  <pre><code>function refreshPrices() {
  
     var beg=&lt;?php echo isset($beg) ? $beg : 0 ?&gt;;
     var inte=&lt;?php echo isset($int) ? $int : 0 ?&gt;;
     var advn=&lt;?php echo isset($adv) ? $adv : 0 ?&gt;;
     var currentTotalValue = 0;
      currentTotalValue = currentTotalValue + beg + inte + advn;
      $("#results div").each(function() {
          if (!isNaN(parseInt($(this).find("span").text().substring(1)))) {
              currentTotalValue += parseInt($(this).find("span").text().substring(1));
          }
      });
  
  
      $("#totalValue").text("$" + currentTotalValue)
  }
  
  $(document).ready(function() {
  
      $('#1').click(function() {
          //var row = $(this);
          if (($(this).attr('checked')) == 'checked') {
              $('#result').append("-PDF Document &lt;html&gt;&lt;span style=float:right&gt;$100&lt;/span&gt;&lt;/html&gt;");
          }
          else {
              $('#result').text("");
          }
  
          refreshPrices()
  
  
      });
  
      $('#2').click(function() {
          if (($(this).attr('checked')) == 'checked') {
              $('#result2').append("-Video &lt;html&gt;&lt;span style=float:right&gt;$200&lt;/span&gt;&lt;/html&gt; ");
          }
          else {
              $('#result2').text("");
          }
  
          refreshPrices()
      });
  });
  </code></pre>