sayedsohail Posted July 27, 2007 Share Posted July 27, 2007 Hi everyone, I am using ajax to dispaly a listbox, which works fine. But i am just wondering how to achieve getting multiple listbox from two different tables at one instance of ajax call. As far i knew it is not possible to send or receive arrays with ajax. So at the moment i am calling ajax function twice to achieve the goal. Any idea or recommendation is highly appreciated. Link to comment https://forums.phpfreaks.com/topic/62104-ajax-multiple-listbox-and-text/ Share on other sites More sharing options...
sayedsohail Posted July 28, 2007 Author Share Posted July 28, 2007 code: $outdata.="<option value=''> Please choose the Title</option>"; while( $dlist = mysql_fetch_array($result) ) { $outdata .= "<option value='$dlist['id']'>"; $outdata .= $dlist['serial_number']. "-" .$dlist['title']. " </option>"; } $outdata.="</select>"; echo $outdata; Link to comment https://forums.phpfreaks.com/topic/62104-ajax-multiple-listbox-and-text/#findComment-309608 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.