hi all-
i am learning a bit about passing data to mySQL via PHP. Old school for a lot of you. Anyway, here is my dilemma. I have a script that draws some pieces of data, loads it into XML, and then i have Flash parse it accordingly. In the flash, there is an asfunction that allows the user to interact with the HTML (came from the XML). If the user clicks the name, then the edit "form" pops up, and has the information in editable boxes. The user can then change the note they originally submitted, etc. However, on my testing, Flash sends back not the updated data on this form ,but the old data that it originally loaded.

i added an onChanged function that does track the changes on the input text fields, but i am not sure how to incoporate that into the "big picture"..any thoughts on how to change the previously loaded variables with new variables?

Code from after the user clicks a link in the HTML:
Code:
var leaderEdit = editForm.txLeader;
var daysEdit = editForm.txDays;
var monthEdit = editForm.txMonth;
var noteEdit = editForm.txNote;
var saveChanges = editForm.mcSave;
var idBox=editForm.idTxBox
idBox._alpha=0;
var lvSendEdits:LoadVars= new LoadVars();
var lvConfirm:LoadVars= new LoadVars();
var newDays
	var newNote
editForm._alpha = 0;
editForm.enabled = false;
var oEdits:Object= new Object();
oEdits.onChanged=function(){
newDays=daysEdit.text;
	newDays=daysEdit.text;
	newNote=noteEdit.text;
}
daysEdit.addListener(oEdits);
noteEdit.addListener(oEdits);
//---------------------------------------------------------------------------------------FUNCTION to FILL edit entry
function editEntry(array) {
	editForm.enabled = true;
	editForm._alpha = 100;
	idValues = array.split(",,");
	for (i=0; i<5; i++) {
		leaderName = idValues[1];
		Month = idValues[2];
		Days = idValues[3];
		Note = idValues[4];
		Id = idValues[0];
	}
	editForm._alpha = 100;
	leaderEdit.text = leaderName;
	monthEdit.text = Month;
	daysEdit.text = Days;
	noteEdit.text = Note;
	idBox.txId.text=Id;
	
	
}
//--------------------------------------------------------------------------------------- SEND edit form info back to update
saveChanges.onRelease=function(){
	sendBackEdits();
}

function sendBackEdits(){
	lvSendEdits.Id=idBox.txId.text;
	lvSendEdits.Days=newDays;
	lvSendEdits.Note=newNote;
	trace(this.Id)
	trace(this.Days)
	trace(this.Note);
	lvSendEdits.sendAndLoad("http://localhost/LeaderRes_May/Flash/confirmChange.php",lvConfirm,"POST");
}
lvConfirm.onLoad=function(success){