# How do I send this global variable to my PHP script?

**URL:** <https://forum.kirupa.com/t/how-do-i-send-this-global-variable-to-my-php-script/180014>\
**Category:** flash\
**Created:** [February 24, 2006, 6:25pm UTC](https://forum.kirupa.com/t/how-do-i-send-this-global-variable-to-my-php-script/180014 "2006-02-24T18:25:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dtrace](https://avatars.discourse-cdn.com/v4/letter/d/59ef9b/32.png) [@dtrace](https://forum.kirupa.com/u/dtrace)\
**Post date:** [February 24, 2006, 6:25pm UTC](https://forum.kirupa.com/t/how-do-i-send-this-global-variable-to-my-php-script/180014/1 "2006-02-24T18:25:20Z")

</div>

I have an email form that I’m sending to a PHP script.  
It’s basically two variables, one for the senders email, and one for the message. They are both within a movieclip called ‘form’, and they are working with this code…  
on (release) {  
// send variables in form movieclip (the textfields)  
// to email PHP page which will send the mail  
\_level2.form.loadVariables(“email.php”, “POST”);  
trace(form.message);  
trace(form.email);  
trace(\_global.var\_name);

}  
I use level2 because this whole email form is being loaded onto level2 of my flash site.  
What I’m trying to do is to send the \_global.var\_name to the PHP as well. It represents a makeshift radio button selection…and when I trace it, it works.  
But either it’s not sending over there, or I’m doing something wrong with the syntax, or I’m not receiving it properly.  
On the PHP side…I’m using…  
$message = $\_POST[“message”];  
$message .= "

" . $\_POST["\_global.var\_name"];  
And it isn’t working. ANy thoughts? I’m so ready to get through this.
