Passing variable PHP, Javascript location.reload, and HTML input
问题 I have a page that runs a MySQL query off of a button click. The query result displays about 6 or so columns with about 100 rows. I would like the user to be able to resort the query results based on clicking the column headers. Pretty much sending them to the same page with the same query, just resorted. So here is what I have so far, all in the same script. HTML table (echoed in PHP) echo "<th id='frame_data_table'><a onClick='innerChange()' href='#'>Command</a></th>"; Javascript function