# Send to Friend form from flash

**URL:** <https://forum.kirupa.com/t/send-to-friend-form-from-flash/276925>\
**Category:** programming\
**Created:** [December 5, 2008, 2:51am UTC](https://forum.kirupa.com/t/send-to-friend-form-from-flash/276925 "2008-12-05T02:51:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nate4923](https://avatars.discourse-cdn.com/v4/letter/n/c5a1d2/32.png) [@nate4923](https://forum.kirupa.com/u/nate4923)\
**Post date:** [December 5, 2008, 2:51am UTC](https://forum.kirupa.com/t/send-to-friend-form-from-flash/276925/1 "2008-12-05T02:51:07Z")

</div>

I’ve made a million flash forms in which I post the data using loadVariables. I’ve always sent the email with this tag:

$to = "name@domain.com";

With this form I’m making now I need the user to be able to define the e-mail address that the data will be sent to. I post the email with a variable called ‘friend\_email’. How do I take that variable and send that data to the specified email? I tried this:

$to = $HTTP\_POST\_VARS[‘friend\_email’];

…and that didn’t work. I suck at PHP pretty bad so I have no idea where to even start. Thanks in advance!
