# Questions about mail form

**URL:** <https://forum.kirupa.com/t/questions-about-mail-form/13054>\
**Category:** Uncategorized\
**Created:** [February 8, 2003, 7:22am UTC](https://forum.kirupa.com/t/questions-about-mail-form/13054 "2003-02-08T07:22:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Audrius](https://avatars.discourse-cdn.com/v4/letter/a/848f3c/32.png) [@Audrius](https://forum.kirupa.com/u/Audrius)\
**Post date:** [February 8, 2003, 7:22am UTC](https://forum.kirupa.com/t/questions-about-mail-form/13054/1 "2003-02-08T07:22:07Z")

</div>

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 = "my@email.com";  
obj.subject = “comments”;  
obj.comments = comments.text;  
userComments.sendAndLoad(“[http://www.mypage/cgi-bin/sendmail.cgi](http://www.mypage/cgi-bin/sendmail.cgi)”, userComments, “POST”);  
\_root.gotoAndStop(“wait”);  
}

can anybody help me with it.

Thanks

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 8, 2003, 12:04pm UTC](https://forum.kirupa.com/t/questions-about-mail-form/13054/2 "2003-02-08T12:04:01Z")

</div>

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](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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 8, 2003, 3:49pm UTC](https://forum.kirupa.com/t/questions-about-mail-form/13054/3 "2003-02-08T15:49:23Z")

</div>

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