I have a php to flash problem

I have a problem accessing the variable from my php file into flash. Now I do have it working in two of my three files what I don’t get is why it works in only two of the 3 files. Please guide the way on this one for me, it is very dark.

These are three separate swfs that send info to the same php file, the variable I need sentinto flash and back out is the (studentID) if anyone can tell me a better way that would be great. to grab and send varialbe from php to flash and back out.

The only difference between the codes are whats being sent in the Userdata part.

MyCode: Not working only sending the email info not the studentId which I want;

stop();
var userData:LoadVars = new LoadVars();
var myFeedback:LoadVars = new LoadVars();
var myStudent:LoadVars = new LoadVars();
function doSubmit():Void {
if (!emailAddress.text.length) {
_root.gotoAndStop(“form”);
} else {
//userData = new LoadVars();
userData.emailAddress = emailAddress.text;
userData.sendAndLoad("…/register.php?ck="+new Date().getTime(), myFeedback, “POST”);
_root.gotoAndPlay(“go”);
}
}
submit_btn.onRelease = doSubmit;
myFeedback.onLoad = function() {
if (this.feedback == “OK”) {
myFeedback.studentId = this.studentId;
myFeedback.sendAndLoad("…/register.php?ck="+new Date().getTime(), myStudent, “POST”);
} else {
feedBack_txt.text = this.msg;
}
};

My: code that does work and sends the studenId with the phone.

stop();
var userData:LoadVars = new LoadVars();
var myFeedback:LoadVars = new LoadVars();
var myStudent:LoadVars = new LoadVars();
function doSubmit():Void {
if (!lastName.text.length || !firstName.text.length || !zipcode.text.length) {
_root.gotoAndStop(“form”);
} else {
//userData = new LoadVars();
_root.name_mc.gotoAndPlay(2);
userData.lastName = lastName.text;
userData.firstName = firstName.text;
userData.zipcode = zipcode.text;
userData.income = income.text;
userData.clientId = _root.clientId;
userData.sendAndLoad("…/register.php?ck="+new Date().getTime(), myFeedback, “POST”);
}
}
submit_btn.onRelease = doSubmit;
myFeedback.onLoad = function() {
if (this.feedback == “OK”) {
myFeedback.studentId = this.studentId;
myFeedback.sendAndLoad("…/register.php?ck="+new Date().getTime(), myStudent, “POST”);
} else {
feedBack_txt.text = this.msg;
}
};