Flash & PHPList

Hey everyone,

So i have been at this for HOURS now im trying to get a sign up for to work in flash. One attrib which is email and simply sign up. Here is the code that i have at the moment, if ANYONE has any idea how to fix this i would really appreciate it. Thanks!

BD

on (release, keyPress “<enter>”) { if (emailad ne “”) {
i = “0”;
validmail = 0;
while (Number(i)<=Number(length(emailad))) {
if (substring(emailad, i, 1) eq “@”) {
validmail = 1;
}
i = Number(i)+1;
}
if (Number(validmail) == 0) {
gotoAndStop(“no”);
} else {

var my_lv:LoadVars = new LoadVars();
my_lv.name = “subscribeform”;
my_lv.subscribe = “Subscribe”;
this.my_lv[“list[2]”] = “signup”;
my_lv.email = emailad;
my_lv.emailconfirm = emailad;
my_lv.sendAndLoad(“http://www.mydomain.com/lists/?p=subscribe&id=2”, my_lv, “POST”);
gotoAndStop(“submit”); } }
}