syntax error missing ), don't know where to place it in order to echo input
<p>I want to know what is the correct way of display a text input in an echo in the code below because nothing is being outputted:</p>

<pre><code>&lt;script language="javascript" type="text/javascript"&gt;
  window.top.stopVideoUpload(
    &lt;?php echo $result; ?&gt;,
    '&lt;?php echo "&lt;input name='vidid' type='text' value='".$id."'/&gt;" . $_FILES['fileVideo']['name']; ?&gt;'
  );
&lt;/script&gt;
</code></pre>

<p>The error I am recieving is: <code>syntaxError: missing ) after argument list.</code></p>
