Return Multiple Values from picklist using $_REQUEST

Hello I have an existing picklist that i am trying to tweak - I am making it into a multiselect and trying to return multiple values

I have been able to accomplish the first part by adding select ‘multiple’ but when i submit it only returns results for the last value selected.

Here is the code for the form (Left out the picklists that do not need to be multiple select)

<? // base64_encode(base64_encode( 'test1'))?>

and here is the return request

            <?    
                if($_REQUEST['report_submited'])    
                {
                    
                    
                
                    
                
                    $ReportData=$ObjReport->generate_report($_REQUEST['Status'],$_REQUEST['School'],$_REQUEST['Campaign'],$_REQUEST['State'],$_REQUEST['Stdtype'],$_REQUEST['Primbad'],$_REQUEST['Rep'],$_REQUEST['From_Date'],$_REQUEST['To_Date'],$_REQUEST['sort_by'],$_REQUEST['search_by'],$_REQUEST['search_val']);
                    $currentTotalRow=mysql_num_rows($ReportData);
                    if($currentTotalRow>0)
                    {
                    
            ?>

Any suggestions would be appreciated

Thanks!

Status: <? $statuslist=$ObjReport->ObjStatus->get_Status_List(); while($status=mysql_fetch_object($statuslist)) { if($status->Status=="Please Select") { ?> Status==$_REQUEST['Status']?"selected=selected":"")?>> <?=$status->Status?> <? } else { ?> Status==$_REQUEST['Status']?"selected=selected":"")?>> <?=$status->Status?> <? } } ?>
Submit

Your dropdown needs to be an array

Sponsor our Newsletter | Privacy Policy | Terms of Service