Hello

I have this code:

Code:
<object id="flashplayer" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="600" height="400">
<param name="movie" value="player.swf" />
<param name="allowFullScreen" value="true" />
<param name="allowScriptAccess" value="always" />
<param name="FlashVars" value="plugins=captions,plugins/proxy.swf&proxy.link=xxxxx&captions.file=xxxxx" />
<embed name="flashplayer" src="player.swf" FlashVars="plugins=captions,plugins/proxy.swf&proxy.link=xxxxx&captions.file=xxxxx" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="600" height="400" />
</object>
I need to substitute xxxxx, by a value entered by a user on input, and transform the code in iFrame.
Example:

Code:
<iframe src='".$link."&sub=".$sub."' width='640' height='360' frameborder='0' scrolling='no'></iframe>
How make this?