Jump to content

PHP Variable - Simple question


JasperHope

Recommended Posts

I'm giving PHP a variable with Actionscript. I have Flash buttons setting a variable so PHP can tell HTML to load a file in an object.

 

Here's my code which doesn't work:

 

<?php
    <object id="foo" name="foo" type="text/html" data=$_POST['flashvariable'] height="700" width="580"></object>
?>

 

Can anyone tell me how this would be done correctly?

 

Cheers.

 

ps. here's my Actionscript code if anyone is interested. I don't know if it will work yet because I can't test it (PHP not working).

 

homebtn.onRelease = function () {
myObject.menuvar = "blog.txt";
};
cafebtn.onRelease = function () {
myObject.menuvar = "cafe.txt";
};
cateringbtn.onRelease = function () {
myObject.menuvar = "catering.txt";
};
privatebtn.onRelease = function () {
myObject.menuvar = "private.txt";
};
contactbtn.onRelease = function () {
myObject.menuvar = "contact.txt";
};
eventsbtn.onRelease = function () {
myObject.menuvar = "events.txt";
};
linksbtn.onRelease = function () {
myObject.menuvar = "links.txt";
};


var myObject = new Object();
    myObject.menuvar = "blog.txt"

   var myFalcon:Falcon=new Falcon("index.php", Falcon.VARIABLES, myObject); 

Link to comment
https://forums.phpfreaks.com/topic/199262-php-variable-simple-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.