|
-
Php, Flashvars and Wordpress
Trying to pass FlashVars into my Flash document which is embedded on a wordpress page. To some extent it is working.
Just seeing if anyone knows why $myvariable wont get passed into Flash via Flash Vars. To get it in there, I have to copy the entire PHP script and paste it in there.
<?php
blah blah
$myvariable = "some php value"
echo $myvariable
?>
That will show the results some php value on my page.
Now if I have Flash in there and I want to put that value from $myvariable into Flash I should be able to do in the object and embed tag kind of like this
<param name=FlashVars value="name=<?php echo $myvariable?>"
The problem is at the point, it doesn't know what $myvariable is. IF I put that entire php code in there it works.
How can I get it to just use the variable?
I have tried in front of the php and throughout but can't get it to work.
-
Registered User
hi,
Really don't understand what the problem is.
In order to use the variable, that variable has to exist and hold some value.
So, before the embedding code where the variable is used, you'll have to have that script of yours which deals the variable in question.
Something like:
PHP Code:
<?php
blah blah
$myvariable = "some php value"
?>
and then
PHP Code:
<param name=FlashVars value="name=<?php echo $myvariable?>"...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|