Forums

Pass PHP results to Flash on WP Page via FlashVars (1 post)

  1. chieffan
    Member
    Posted 3 weeks ago #

    IF I go to edit page and write some php
    <?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.

    Thanks.

Reply

You must log in to post.

About this Topic