Need help with sendAndLoad

Hi…there…

Okay I just need help with sendAndLoad …because when php pass the variable it keeps trace undefined…so I really need help u guys to check if my code are wrong…atr least tell me where is the my mistake…

here’s are the AS I’m using…



var cbdt = new LoadVars();
var getdt = new LoadVars();
getdt.onLoad = loadthumb;

function searchdt(dtSel){
	cbdt.dataType = dtSel;
//dtSel -->> I pas this value from comboBox into this function
	//for (var prop in cbdt) {
		//		trace("About to send "+prop+" as: "+cbdt[prop]);
	//}
	cbdt.sendAndLoad("http://localhost/multiupload/getimage.php?ck="+new Date().getTime(),getdt);
	
}


var col:Number = 3;
var typeArr:Array = [];
function loadthumb(){
	errortext.text = this.items;
	if(success){
		//trace(this.items);
	}else{
		
		//trace(this.messsage);
		errortext.text = this.messsage;
	}
}
//////////////////////////////////////


and this is for php



<?
  $dbhost = "localhost";
  $dbusername = "root";
  $dbpassword = "";
  $dbname = "ecard";
  
  $db = mysql_connect($dbhost, $dbusername, $dbpassword);
  mysql_select_db($dbname, $db) or die("ERROR: Cannot connect to the database");
  
 $typedt=$_POST['dataType'];

 if (!get_magic_quotes_gpc()) {
  foreach($_POST as $key=>$value) {
  $temp = addslashes($value);
  $_POST[$key] = $temp;
}
  

 
  $query = "SELECT type FROM img WHERE type = '$typedt'";
  $result = mysql_query($query);
  $row = mysql_num_rows($result);

if (!$row == 0){
	echo "&items=$row";
	//echo $row;
   
    for ($i=0; $i < $row; $i++) {
  		 $dt = mysql_fetch_array($result );

     echo "&type$i=". $dt['type']."";

	 }
   echo "&end";
   echo ("&message=yes you got it");
  
}else{
    echo ("&message=No elements has found");

} 

?>




So really nee dhelp with it…

tq in advanced