Hi I have this query which display the data in ASC but now I am trying to create a drop down where the user can change to display asc or desc is it possible to change the value of the function depending on the option the users select?

here the script that choose asc or desc

PHP Code:
    $args = array(
        
's' => $_GET['s'],
        
'post_type' => 'deals',
        
'orderby' => 'title',
        
'order' => 'ASC',
        
'paged' => get_query_var('paged')
    ); 
This is my form
PHP Code:
<form name=frm action='thispage.php'>
         <
select name=qryorder onchange='document.frm.submit()'>
          <
OPTION VALUE='asc'>Locationselect</OPTION>
        <
OPTION VALUE='asc'>Ascending</OPTION>
        <
OPTION VALUE='desc'>Descending</OPTION>
     </
select>
 </
form
So my plans was to set the as a variable that would be populated by the value of the options would this be the right way? somthing like
PHP Code:
'order' => '$variable',

 <
OPTION VALUE='$variable = Asc'>Ascending</OPTION>
 <
OPTION VALUE='$variable = DESC'>Descending</OPTION
Please advise? thanks in adavance