# LoadVars + FileReference Form

**URL:** <https://forum.kirupa.com/t/loadvars-filereference-form/181094>\
**Category:** flash\
**Created:** [March 6, 2006, 1:42pm UTC](https://forum.kirupa.com/t/loadvars-filereference-form/181094 "2006-03-06T13:42:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rodolpho82](https://avatars.discourse-cdn.com/v4/letter/r/9fc348/32.png) [@Rodolpho82](https://forum.kirupa.com/u/Rodolpho82)\
**Post date:** [March 6, 2006, 1:42pm UTC](https://forum.kirupa.com/t/loadvars-filereference-form/181094/1 "2006-03-06T13:42:55Z")

</div>

Hi,

I’ve made a form in Flash, where the user sends the data of the registration and a curriculum or image attached. All to a PHP script to sent the mail to my client.  
I used LoadVars for the data of the form and FileReference for the attachment, but I can’t send the both at the same time. When I submit the form, it sends me two mails, one with the data and other with the attachment.  
I know that it happens because the LoadVars sends via “.send” and the FileReference sends via “.upload”, but…  
Can I make a junction with these two classes?

Someone can help me?

Sorry, I’m brazilian, my english is not so good.  
I hope I made miself understood.

Thank you.
