Creating a dynamic embed code
<p>I'm having issues creating a dynamic embed.  I basically need it to change dynamically (e.g index.php?channel=randomname), but I want it so when they input the name it changes the name in the embed to what they put. </p>

<pre><code>&lt;object type="application/x-shockwave-flash"
        data="http://www.justin.tv/widgets/live_embed_player.swf?channel={$id}"
        id="live_embed_player_flash" 
        height="300" 
        width="400" 
        bgcolor="#000000"&gt;
&lt;param name="allowFullScreen" value="true"/&gt;
&lt;param name="allowScriptAccess" value="always" /&gt;
&lt;param name="allowNetworking" value="all" /&gt;
&lt;param name="movie" value="http://www.justin.tv/widgets/live_embed_player.swf" /&gt;
&lt;param name="flashvars" value="hostname=www.justin.tv&amp;channel={$id}&amp;auto_play=false&amp;start_volume=25" /&gt;
&lt;/object&gt;
</code></pre>

<p>But at the same time I'd like a default video when it's index.php or an invalid link. How can I do this?</p>
