Form : form.send() can not work at second time

Hi,

I have a form, when I select the combo then it can load the data to another field and userSecurityFormA.send() can work . But I select the combo second time, the userSecurityFormA.send() can not work.

Could you tell me what problem is.

Thank you for your help.

main page


userSecurityFormA = myLayout.cells("a").attachForm(userSecurityFormDataA);
    userSecurityFormA.getCombo("user_id").load("php/userSecurityFormDataA.php");
    userSecurityFormA.attachEvent("onChange", function (name, value){
		if(name=="user_id"){			
    	   	userSecurityFormA.load("php/userSecurityFormDataA_2.php?id="+value);
    	   	
    	   	value1 = value;
    	   	
			userSecurityFormA.send("php/mirror.php?user_id="+value1, function(loader, response){				
			
				userSecurityFormDataB(response);
				alert("value2 is "+value1);
							
			});
			
		}
	});	

mirror.php

[code]<?php

//include db connection settings
require_once(“config/config.php”);
//require_once(“menuGetItemId.php”);

$res=mysql_connect($mysql_server,$mysql_user,$mysql_pass);
mysql_select_db($mysql_db);

$user_id = $_GET['user_id'];
$sql1 = "SELECT  * FROM office_user WHERE user_id='".$user_id."'";
	$res1 = mysql_query ($sql1);
	if($res1){
		while($row=mysql_fetch_array($res1)){
			$username = $row['username'];
		}
	}

print_r($username);

?>[/code]

Hi

Could you please provide us complete demo including all correspondnig js/css files?
Please also add information regarding current and expected behaviour.

Here is a small guide how to make a complete demo:
docs.dhtmlx.com/tutorials__auxil … pport.html

If you don’t want to share your demo here for any reasons - you can send it to support@dhtmlx.com, if so - please include link to this forum topic.

If you’re using PRO Edition please send your demo to support@dhtmlx.com