更新时间:2022-10-26 10:25:18
query = mysql_query( call prcSelectUsers ()跨度>);
while(
r = mysql_fetch_array(
query))
{
echo < option>
Hi i want to select options (single or multiple) from a dropdown list and then have to copy the selected options to another dropdown list. This is my coding.
<td>
<select name="drpUsers" multiple="multiple" style="height:100;width:100">
<?php
include "dbConnection.php";
$query=mysql_query("call prcSelectUsers()");
while($r=mysql_fetch_array($query))
{
echo "<option>".$r['vchUserName'];
echo "</option>";
}
?>
</select>
</td>
function add()
{
var b=document.getElementById('drpUsers').value;
alert(b);
}
This add() function is called in onclick of a button but variable b returns null how to do this? Pls help
query=mysql_query("call prcSelectUsers()"); while(
r=mysql_fetch_array(
query)) { echo "<option>".