Echoing the selected date in a dropdown list
Ok i have this code to echo the if the values are selected how can i use this for a date dropdown list without creating a variable for each day?

 

    if ($st_title[$i]=='Mr'){
    $mr_select='selected="selected"';
    $mrs_select='';
    $ms_select='';	
    }else if ($st_title[$i]=='Mrs'){
    $mr_select='';
    $mrs_select='selected="selected"';
    $ms_select='';	
    } else {
    $mr_select='';
    $mrs_select='';
    $ms_select='selected="selected""';
    }
Echoing the selected date in a dropdown list
===

Ok i have this code to echo the if the values are selected how can i use this for a date dropdown list without creating a variable for each day?

 

    if ($st_title[$i]=='Mr'){
    $mr_select='selected="selected"';
    $mrs_select='';
    $ms_select='';	
    }else if ($st_title[$i]=='Mrs'){
    $mr_select='';
    $mrs_select='selected="selected"';
    $ms_select='';	
    } else {
    $mr_select='';
    $mrs_select='';
    $ms_select='selected="selected""';
    }