• Hi,

    I want to be able to get the page_id value on the querystring so i can use it with flashvars for my swf file. currently i have this code:

    ———–

    <object classid=”clsid:d27cdb6e-ae6d-11cf-96b8-444553540000″ codebase=”https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0&#8243; width=”740″ height=”150″ id=”timfitz_banner” align=”left”>

    <param name=”FlashVars” VALUE=”myVar=<?php$_GET[‘page_id’]?>”/>

    <param name=”allowScriptAccess” value=”sameDomain” />
    <param name=”movie” value=”movies/waterworks.swf” /><param name=”quality” value=”high” /><param name=”bgcolor” value=”#9F8E7F” />
    <embed src=”movies/waterworks.swf” FlashVars=”myVar=<?php$_GET[‘page_id’]?>” quality=”high” bgcolor=”#9F8E7F” width=”740″ height=”150″ name=”timfitz_banner” align=”left” allowScriptAccess=”sameDomain” type=”application/x-shockwave-flash” pluginspage=”https://www.macromedia.com/go/getflashplayer&#8221; />
    </object>

    ——-

    as you can see i used <?php$_GET[‘page_id’]?> to insert the value of page_id, my current querystring is this: https://sigbin.com/?page_id=2

    but <?php$_GET[‘page_id’]?> does not work, i placed the embed code on the header.php file because im using the swf as a header. <?php$_GET[‘page_id’]?> just returns nothing, is there any other way i can put the value in flashvars? or maybe my code is wrong.

  • The topic ‘getting the pag_id value querystring for use with flashvars’ is closed to new replies.