# Argg! Windows a popin'

**URL:** <https://forum.kirupa.com/t/argg-windows-a-popin/165135>\
**Category:** flash\
**Created:** [October 8, 2005, 2:07am UTC](https://forum.kirupa.com/t/argg-windows-a-popin/165135 "2005-10-08T02:07:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ANEWIDEACo](https://avatars.discourse-cdn.com/v4/letter/a/13edae/32.png) [@ANEWIDEACo](https://forum.kirupa.com/u/ANEWIDEACo)\
**Post date:** [October 8, 2005, 2:07am UTC](https://forum.kirupa.com/t/argg-windows-a-popin/165135/1 "2005-10-08T02:07:16Z")

</div>

[AS]stop ();

function sendForm () {  
my\_lv = new LoadVars ();  
my\_lv.fname = name;  
my\_lv.email = email;  
my\_lv.subject = subject;  
my\_lv.content = content;  
my\_lv.send (“email.php”, “POST”);  
gotoAndPlay(3);

}

send\_btn.onRelease = function () {  
if (name.text == “” || email == “” || subject.text == “” || content.text == “”) {  
status\_txt.text = “Please fill in all fields.”;  
} else {  
status\_txt.text = “”;  
sendForm ();  
}  
};[/AS]

Okay that is my code to run my e-mail form. It works great. BUT! After a use clicks send it opens up the email.php, how do I fix this.

Here is the peice of code I think is causing the window to open upon submiting:  
[AS]my\_lv.send (“email.php”, “POST”);[/AS]  
Thanks.
