# Using send variables vs loadvariables

**URL:** <https://forum.kirupa.com/t/using-send-variables-vs-loadvariables/254268>\
**Category:** flash\
**Created:** [March 10, 2008, 1:00pm UTC](https://forum.kirupa.com/t/using-send-variables-vs-loadvariables/254268 "2008-03-10T13:00:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dpots](https://avatars.discourse-cdn.com/v4/letter/d/9fc29f/32.png) [@Dpots](https://forum.kirupa.com/u/Dpots)\
**Post date:** [March 10, 2008, 1:00pm UTC](https://forum.kirupa.com/t/using-send-variables-vs-loadvariables/254268/1 "2008-03-10T13:00:43Z")

</div>

I have an email form in a flash file. Currently I am using the send variables coding as for whatever reason, it doesn’t function if I use loadvariables:

Here’s what I have set up on my submit button:

on(release)  
{  
if(form.name == “” || form.phone == “” || form.email == “” || form.message == “”)  
{  
form.gotoAndStop (3);  
}  
else  
{  
var lv = new LoadVars();  
lv.name = form.name;  
lv.phone = form.phone;  
lv.email = form.email;  
lv.message = form.message;  
lv.send(“contact2.asp”, 0, “POST”);  
form.gotoAndStop(2);  
}  
}

My problem is that on submit, the contact2.asp comes up when I hit submit. Is there a way to avoid having that page come up and keep it on the flash page?

Thanks,  
Dave
