ya this is working fine but i want to check the multiple checkbox then event must be fired as per below code
combo provides onCheck event. It occurs when option checkbox is clicked:
combo.attachEvent(“onCheck”,function(value,state){
alert(value);
return true
})
i am getting only one value of checkbox , i want muliple value of checkbox and after that i want to add the value with the sql query and fetch data from databse.
this is my html file
Checkbox Select
<?php
header(“Content-type:text/xml”);
ini_set(‘max_execution_time’, 7000);
require_once(‘config.php’);
print("<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>");
?>
<?php
$link = mysql_pconnect($mysql_host, $mysql_user, $mysql_pasw);
$db = mysql_select_db ($mysql_db);
if (!isset($_GET[“pos”])) $_GET[“pos”]=0;
//print one level of the tree, based on parent_id
//function getDataFromDB($mask){
$sql = “SELECT DISTINCT item_nm FROM countries”;
// echo “ppp”. $sql.= " Order By item_nm LIMIT “. $_GET[“pos”].”,100";
print("");
$res = mysql_query ($sql);
if($res){
while($row=mysql_fetch_array($res)){
print("<option value="".$row[“item_nm”]."">");
print($row[“item_nm”]);
print("");
}
}else{
echo mysql_errno().": “.mysql_error().” at “.LINE.” line in “.FILE.” file
";
}
print("");
//}
?>
plaese reply me as soon as possible.