# Passing vars from Flash to HTML

**URL:** <https://forum.kirupa.com/t/passing-vars-from-flash-to-html/104003>\
**Category:** Uncategorized\
**Created:** [March 11, 2004, 2:40pm UTC](https://forum.kirupa.com/t/passing-vars-from-flash-to-html/104003 "2004-03-11T14:40:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![choja78](https://avatars.discourse-cdn.com/v4/letter/c/85f322/32.png) [@choja78](https://forum.kirupa.com/u/choja78)\
**Post date:** [March 11, 2004, 2:40pm UTC](https://forum.kirupa.com/t/passing-vars-from-flash-to-html/104003/1 "2004-03-11T14:40:09Z")

</div>

I there. I seem to be having some problems passing variable from Flash to HTML.

In my movie I simply havea variable text box named ‘value’ and a button. The user types in some text and then when pressing the button it passes that variable to a new HTML page. The problem I’m having is the PHP part.

So again I’m passing the varilabe ‘value’.

I then send the variable using getURL:

//send variable  
on (release){  
getURL(‘[http://localhost/middle.php4’,\_blank,'GET](http://localhost/middle.php4',_blank,'GET)’);  
}

The middle.php4 conatins the following code  
\<title\> Passing the Variable \<? echo $value ?\>\</title\>

…and in the body contains a line:  
The variable you should see is \<? echo $value ?\>

When looking this in the browser the \<title\> just prints it exactly has shown '\<? echo $value ?\>

where as the second line doesn’t show the value at all (i.e. The variable you should see is _blank_)

I tried adding the line $value = $\_POST[‘value’] but that didn’t work.

Any other thoughts? Could there be something wrong with my PHP? I’m running on 4.3
