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]