choja78
03-11-2004, 09:42 AM
Hi there. I was going thorugh Tutorial 26 of the Intermediate level (Passing Variables around - Flash to HTML and back) and I can't seem to figure out why it is not working.
I downloaded the source files and extracted all files to my local folder but when I run the .fla the html page is not reading the php code.
For example in Flash I'm passing the varilabe 'value'.
I then send the variable using getURL:
//send variable
on (release){
getURL('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
I downloaded the source files and extracted all files to my local folder but when I run the .fla the html page is not reading the php code.
For example in Flash I'm passing the varilabe 'value'.
I then send the variable using getURL:
//send variable
on (release){
getURL('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