The
should have a name
attribute, e.g
. You could then say
if ($_REQUEST['sortorder'] == 'Newest') {
// TODO sortorder 'Newest' was selected.
}
If you know whether the form data is comming in via HTTP GET or HTTP POST, you could use $_GET['sortorder']
or $_POST['sortorder']
respectively.