how can I connect a HTML page that send parameter to a PHP page that should sort a DB through those parameters?
Basically I have a HTML form page with a drop down menu that send the name of a DB column. On the PHP I have tha code that access the DB but I can't figure out how to get those name and sort the DB through that name (or variable or flag).
I tried with a
$name = $_POST['nameOfTheHtmlFormField'];
But the value of $name is NULL if I echo it.
Plus, I have no idea how to communicate that flag to a sort command in the PHP
Do you have any clue or resource I can look up?
Thank you.