# Querystrings and FLVs

**URL:** <https://forum.kirupa.com/t/querystrings-and-flvs/187903>\
**Category:** flash\
**Created:** [May 3, 2006, 2:23am UTC](https://forum.kirupa.com/t/querystrings-and-flvs/187903 "2006-05-03T02:23:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Monkeyspoon](https://avatars.discourse-cdn.com/v4/letter/m/82dd89/32.png) [@Monkeyspoon](https://forum.kirupa.com/u/Monkeyspoon)\
**Post date:** [May 3, 2006, 2:23am UTC](https://forum.kirupa.com/t/querystrings-and-flvs/187903/1 "2006-05-03T02:23:57Z")

</div>

hi everyone,

im trying to link a html querystring into my flash swf to select the appropriate video.

the links on the page are like page.php?v=filename

so when it calls the page i retrieve the querystring with:

\<?php  
$v=$\_REQUEST[‘v’];  
?\>

then my swf embed code is as follows:

\<object classid=“clsid:d27cdb6e-ae6d-11cf-96b8-444553540000” codebase=“[http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0](http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0)” width=“400” height=“300” id=“video” align=“middle”\>  
\<param name=“allowScriptAccess” value=“sameDomain” /\>  
\<param name=“movie” [COLOR=Red]value=“video.swf?v=\<?php echo $v;?\>”[/COLOR] /\>\<param name=“quality” value=“high” /\>\<param name=“bgcolor” value="#000000" /\>\<[COLOR=Red]embed src=“video.swf?v=\<?php echo $v;?\>”[/COLOR] quality=“high” bgcolor="#000000" width=“400” height=“300” name=“video” align=“middle” allowScriptAccess=“sameDomain” type=“application/x-shockwave-flash” pluginspage=“[http://www.macromedia.com/go/getflashplayer](http://www.macromedia.com/go/getflashplayer)” /\>  
\</object\>

then the code in the first (and only) frame of my flash file is:

if (v = “”){  
video.contentPath=“drugs.flv”;  
}else{  
video.contentPath=v + “.flv”;  
}

of course the flv component is called “video”

it simply does not work as you can see if you go to [www.monkeyspoon.co.uk/video.php](http://www.monkeyspoon.co.uk/video.php)

please someone help :pirate3:
