# How do I retrieve this variable?

**URL:** https://forum.kirupa.com/t/how-do-i-retrieve-this-variable/74975
**Category:** flash
**Created:** [January 4, 2005, 6:24pm UTC](https://forum.kirupa.com/t/how-do-i-retrieve-this-variable/74975 "2005-01-04T18:24:12Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![darthmahon](https://avatars.discourse-cdn.com/v4/letter/d/8491ac/32.png) [@darthmahon](https://forum.kirupa.com/u/darthmahon)
#### Post date: [January 4, 2005, 6:24pm UTC](https://forum.kirupa.com/t/how-do-i-retrieve-this-variable/74975/1 "2005-01-04T18:24:12Z")

</div>

Hey,

Ok using a simple form as I want to test out things before implementing them into my website. Anyway, just wondered how I retrieve the variables from flash mx components to send to my PHP form?

I have attached the file, not quite sure what I am missing? I’ve used the getValue function but still not showing it on my php script which is the following:

```php

<?php
$to = "me@me.com";
$msg = "$name has requested the following: $listbox.

";
$msg .= "Their email address is $email.

";

if ($tickbox) {

	$msg .= "They wish to be contacted about future promotions.

";

}

$subject = "Website: ".$listbox;

mail($to, $subject, $msg, "From: My web site
Reply-To: $email
");
?> 

```

Cheers,  
Chris
