# Passing variable from PHP to textfield into movieclip

**URL:** <https://forum.kirupa.com/t/passing-variable-from-php-to-textfield-into-movieclip/150333>\
**Category:** flash\
**Created:** [June 6, 2005, 8:59pm UTC](https://forum.kirupa.com/t/passing-variable-from-php-to-textfield-into-movieclip/150333 "2005-06-06T20:59:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![djavet](https://avatars.discourse-cdn.com/v4/letter/d/85e7bf/32.png) [@djavet](https://forum.kirupa.com/u/djavet)\
**Post date:** [June 6, 2005, 8:59pm UTC](https://forum.kirupa.com/t/passing-variable-from-php-to-textfield-into-movieclip/150333/1 "2005-06-06T20:59:57Z")

</div>

Hello

I’ve a contact formular from [www.peopleforfun.com](http://www.peopleforfun.com) and I try to put the whole stuff into a movieclip. All is working perfect except the response from my php script to the textfield into a movieclip. It’ working only if the textfield is on the mainstage (\_root).  
My sample file:  
[http://www.younggods.com/xxy/test.fla](http://www.younggods.com/xxy/test.fla)

My php script:

```auto
<?php
$TextVariable = '&risultati=';
$response = 'Message gone... Thx!';
echo $TextVariable;
echo $response;
$recipient = "nome@mysite.com";

$subject = "[The Young Gods] XXY Flash contact";
$date = date( "d/m/Y - H:i:s");

$msg = "You got mail! Your message :
";
$msg .= "-------------------------------------

";
$msg .= "Name: $nome
";
$msg .= "EMail: $email
";
$msg .= "WebSite: $url

";
$msg .= "Message: $commenti

";
$msg .= "-------------------------------------
";
$msg .= "sent: $date";

// Send to TYG
mail($recipient, $subject, $msg, "From: ".$FirstName." <".$email.">");

// Send cc to sender
mail($email, "[The Young Gods] Thank You","Automatic Responder

Thank for your interest in The Young Gods, $nome

Your message follows (Send Date: $date):

-------------------------------------

$commenti

-------------------------------------

If you have recieved this message in error or did not ask for this message
to be sent to you please contact name@mysite.com to report abuse.

Kindest Regards,

The Young Gods

www.younggods.com

", "From: $recipient");
?>

```

Any idea?  
I wish to include the response on the textfield “risultati”.

Thx for your help and time.  
Regards, Dominique
