Questions about mail form

what is the problem ?I have main movie with a contact button in it, when i click on it it load my external SWF with mail form in it, and when it (form)loads its not working. but when i test form.swf in its own fla it works fine.

userComments = new LoadVars();
userComments.onLoad = function(success) {
if (success) {
_root.gotoAndStop(“output”);
} else {
_root.gotoAndStop(“error”);
}
};
function sendComments() {
var obj = userComments;
obj.from = fromEmail.text;
obj.name = fromName.text;
obj.to = "[email protected]";
obj.subject = “comments”;
obj.comments = comments.text;
userComments.sendAndLoad(“http://www.mypage/cgi-bin/sendmail.cgi”, userComments, “POST”);
_root.gotoAndStop(“wait”);
}

can anybody help me with it.

Thanks

don’t know about cgi forms, I use php for them.

but I guess you must specify the level on wich the movie is located to load the vars.

something like this…

userComments.sendAndLoad(“http://www.mypage/cgi-bin/sendmail.cgi”, userComments, [COLOR=red]5[/COLOR] , “POST”);

I used 5 in the example but that’s the place where to put the number of the level on wich the movie is loaded.

gl

thanks you for responding. I fixed the problem by simple taking of _root