Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.