I am getting data via $_GET['value'] and I want that value to represent a variable of an array.
I'm building a sort by drop-down menu with 3 options.
I want to search an array for a match.
So if the $_GET['value'] == 'name'
then I want to search my array for 'name' and use that value as the data sent to my query.
Sort By:
<select name='1' value='name'>Name</select>
<select name='1' value='manufacturer'>Brand</select>
So when php gets the values of the select menu I want to do an array search for that name and use its value to represent a variable to be sent to my query.