Home › Forums › JavaScript › Assign a Javascript variable to a PHP variable › Re: Assign a Javascript variable to a PHP variable
July 13, 2011 at 8:53 am
#83286
lyleyboy
Member
On the select just have an onclick with window.location.href but add in ?sort=ORDER BY Price DESC
Then in the page using PHP get the $_GET variable and appending it to your database query string.