WordPress.org

Ready to get started?Download WordPress

Forums

getting the pag_id value querystring for use with flashvars (1 post)

  1. steelwater
    Member
    Posted 7 years ago #

    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="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" 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="http://www.macromedia.com/go/getflashplayer" />
    </object>

    -------

    as you can see i used <?php$_GET['page_id']?> to insert the value of page_id, my current querystring is this: http://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.

Topic Closed

This topic has been closed to new replies.

About this Topic