title: Grab the value of price range using PHP
body: <p>I am working with a similar price range:
  <a href="http://jsfiddle.net/dhana36/b453V/2/" rel="nofollow">http://jsfiddle.net/dhana36/b453V/2/</a></p>
  
  <p>I would like to be able to grab the values of the minimum and maximum value in a price range from the following javascript function using PHP:</p>
  
  <pre><code> $(function() {
      $( "#slider-range" ).slider({
        range: true,
        min: 0,
        max: 2000,
        values: [ 300, 1000 ],
        slide: function( event, ui ) {
          $( "#amount" ).val( "$" + ui.values[ 0 ] + " - $" + ui.values[ 1 ] );
        }
      });
      $( "#amount" ).val( "$" + $( "#slider-range" ).slider( "values", 0 ) +
        " - $" + $( "#slider-range" ).slider( "values", 1 ) );
    });
  </code></pre>
  
  <p><strong>Below is what I am trying to achieve:</strong></p>
  
  <pre><code>$p1 = value from minimum value;
  $p2 = value from maximum value;
  $get_crs = mysql_query("SELECT * FROM products where product_price BETWEEN '$p1' AND '$p2' ORDER BY product_date1");
  </code></pre>
  
  <p><strong>Hence, my question is as follow:</strong>
  I have a slider, and where the search result is dynamically filter by the minimum and maximum price, my problem is how fill in the following blank:</p>
  
  <pre><code>   $p1 = blank;
      $p2 = blank;
  </code></pre>
  
  <p>Note:
  If you're curious about how the html portion of it, below is the code:</p>
  
  <pre><code>  &lt;label for="amount" id="Price"&gt;Price Range&lt;/label&gt;&lt;br&gt;
    &lt;input type="text" id="amount"&gt;
  &lt;/p&gt;
  &lt;div id="slider-range"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>If you need any clarification, let me know.</p>