Ask a Question related to Macromedia Flash Data Integration, Design and Development.
-
MYSCREENNAMEISUNAVAILABLE #1
LoadVars-using send to pass a variable from flash to php
For the life of me, I've tried everything:
I've researched LoadVars on Adobe forum, used David Powers' books, googled
'flash to php', LoadVars, etc. and tried sendAndLoad, send, and using $_POST,
$_GET, $_REQUEST. $HTTP_POSTVARS but I keep getting this same error. any advice
please?
My goal with this simple app is to prototype being able to pass a variable
from flash to a variable in php.
Parse error: syntax error, unexpected T_VARIABLE in flash_to_SQL.php on line 5
Actionscript 2.0 code:
var c :LoadVars = new LoadVars();
c.testing = "123FOUR";
c.send ("http://127.0.0.1/flash_to_SQL.php","_self","POST");
php code: (I also tried $_POST, $_GET, $_REQUEST. $HTTP_POSTVARS)
<?php
//mysql 4.1.2, php 4 , NO mysqli
ecbo $_REQUEST ['testing'];
/?>
MYSCREENNAMEISUNAVAILABLE Guest
-
How to pass a variable from HTML to Flash 9
I have built my flash ad banner in Flash 9 and now want the HTML code to pass the url over to the flash movie that it should jump to when clicked. ... -
Flash to CFM via loadvars.send()
Does anyone know when you use loadvarsObj.send("index.cfm","_blank","post") which scope the variables are presented to CF in? I had assumed that... -
Flash Forms (Can't pass a variable)
Hello All, I have a flash form, and it is working ok except for a combo box within the form that is not passing the selection. Any ideas what... -
Pass External Variable to Flash
I have the Flash Menu Tree. from Flash Exchange and it really works well using an externally loaded XML file. I am interested in passing the name of... -
Pass String Variable from Flash MX to Director MX
Is there any way for me to pass a string variable from Flash MX to Director MX? The line of code I'm using in Flash where I'd like to pass the... -
acframe #2
Re: LoadVars-using send to pass a variable from flash tophp
ecbo? shouldn't that be echo? :)
acframe Guest
-
Jefferator #3
Re: LoadVars-using send to pass a variable from flash tophp
Not sure it is making it to ecbo...
Jefferator Guest
-
durand #4
Re: LoadVars-using send to pass a variable from flash tophp
var formData:LoadVars = new LoadVars();
formData.fname = "Name";
formData.send("http://www.website.com/flash_php.php", formData, "POST");
<?php
$name = $_POST['fname'];
echo $name;
?>
durand Guest



Reply With Quote

