Sending data to server

this is the first time i’ve used flash to send data to a server. what i’m doing is sending input form data to a coldfusion mail page. check out the syntax that is causing the problem.

stop();
emailAddress_txt.text = “join the mailing list?”;
var emailAddressData:LoadVars = new LoadVars();
var rollOverSound:Sound = new Sound(home_mc, experiments_mc, resources_mc, contact_mc);
function submitEmailAddress() {
if (emailAddress_txt.text = “”) {
emailAddress_txt.text = “please enter email address”;
} else if (emailAddress_txt.text = “join the mailing list?”) {
emailAddress_txt.text = “please enter email address”;
} else if (emailAddress_txt.text = “please enter email address”) {
emailAddress_txt.text = “please enter email address”;
} else if (emailAddress_txt.text.indexOf("@") < 2) {
emailAddress_txt.text = “enter a valid email address”;
} else if (emailAddress_txt.text = “enter a valid email address”) {
emailAddress_txt.text = “please enter email address”;
} else {
emailAddressData.sendAndLoad(“http://localhost:8500/pulsated_experiments/flashEmail_processor.cfm”, emailAddressData, “POST”);
emailAddress_txt.text = “thank you”;
}
}
rollOverSound.attachSound(“rollover”);
home_mc.home_btn.onRollOver = function() {//home_btn actions--------------------------------------
_root.home_mc.gotoAndPlay(“rollover”);
rollOverSound.start(0,1);
}
home_mc.home_btn.onRollOut = function() {
_root.home_mc.gotoAndPlay(“rollout”);
}
home_mc.home_btn.onRelease = function() {
getURL(“index.cfm”, “_self”);
}
experiments_mc.experiments_btn.onRollOver = function() {//experiments_btn actions-----------------
_root.experiments_mc.gotoAndPlay(“rollover”);
rollOverSound.start(0,1);
}
experiments_mc.experiments_btn.onRollOut = function() {
_root.experiments_mc.gotoAndPlay(“rollout”);
}
experiments_mc.experiments_btn.onRelease = function() {
getURL(“experiments.cfm”, “_self”);
}
resources_mc.resources_btn.onRollOver = function() {//resources_btn actions-----------------------
_root.resources_mc.gotoAndPlay(“rollover”);
rollOverSound.start(0,1);
}
resources_mc.resources_btn.onRollOut = function() {
_root.resources_mc.gotoAndPlay(“rollout”);
}
resources_mc.resources_btn.onRelease = function() {
getURL(“resources.cfm”, “_self”);
}
contact_mc.contact_btn.onRollOver = function() {//contact_btn actions-----------------------------
_root.contact_mc.gotoAndPlay(“rollover”);
rollOverSound.start(0,1);
}
contact_mc.contact_btn.onRollOut = function() {
_root.contact_mc.gotoAndPlay(“rollout”);
}
contact_mc.contact_btn.onRelease = function() {
getURL(“contact.cfm”, “_self”);
}
logo_mc.logo_btn.onRollOver = function() {//logo_btn actions---------------------------------------
_root.logo_mc.gotoAndPlay(“rollover”);
}
logo_mc.logo_btn.onRollOut = function() {
_root.logo_mc.gotoAndPlay(“rollout”);
}
logo_mc.logo_btn.onRelease = function() {
getURL(“http://www.pulsated.com”, “_self”);
}
form_mc.form_btn.onRollOver = function() {//form_btn actions----------------------------------------
_root.form_mc.gotoAndPlay(“rollover”);
}
form_mc.form_btn.onRollOut = function() {
_root.form_mc.gotoAndPlay(“rollout”);
}
form_mc.form_btn.onRelease = _root.submitEmailAddress;

i’m stumped any help would be most appreciated.

thank you for your time.

I think the problem lies within this function

function submitEmailAddress() {
if (emailAddress_txt.text = “”) {
emailAddress_txt.text = “please enter email address”;
} else if (emailAddress_txt.text = “join the mailing list?”) {
emailAddress_txt.text = “please enter email address”;
} else if (emailAddress_txt.text = “please enter email address”) {
emailAddress_txt.text = “please enter email address”;
} else if (emailAddress_txt.text.indexOf("@") < 2) {
emailAddress_txt.text = “enter a valid email address”;
} else if (emailAddress_txt.text = “enter a valid email address”) {
emailAddress_txt.text = “please enter email address”;
} else {
emailAddressData.sendAndLoad(“http://localhost:8500/pulsated_experiments/flashEmail_processor.cfm”, emailAddressData, “POST”);
emailAddress_txt.text = “thank you”;
}
}