This is probably a very basic question, but I have trouble finding the solution and maybe someone can help me or direct me to some other sites.
I have a page here: Benchmark Results
There are 9 tabbed panels with a number of radio buttons,
and below that is a list of records from a MySQL database.
I want the following to happen:
-
When a radio button is clicked, I want to retrieve the value associated with the button.
Should I use a hidden button with the ‘On-click’ property? How do I retrieve the value? -
I want to add that value to a variable used in a WHERE statement and update the mysql_query (“whatever”).
Example: When someone clicks on ‘Asus’ and the database is queried with the corresponding WHERE xxx =‘Asus’ , the number of records found goes down from 328 to say 91. -
After moving to another tab and clicking on another radio button, I want to retrieve the value associated with that button.
-
I want to add that value to the previous variable and used in the WHERE statement and again update the mysql_query(“whatever”, “next choice”).
This also implies that the query itself must be embedded in a function to update the list of records from whatever tab one clicks.
I hope you get my drift and can offer some suggestions.