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. Quote Link to comment 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; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.