Javascript embedded in PHP's echo
<p>I am trying to embed javascript in php's echo. 
I want to have a button saying "Continue??".
If the user presses "Ok" then <code>upload.php</code> should execute. 
If the user presses "Cancel" then he should get a popup.
Could you let me know where's the error in the following code. I see a button saying "Continue" but the <code>onclick</code> event doesn't work.</p>

<pre><code>echo "&lt;form name=myform&gt;";
echo "&lt;input type=button value=\"Continue? \"";
echo "onClick=\"if(confirm('Sure to continue'))";
 echo "&lt;form enctype=\"multipart/form-data\" action=\"upload.php\" method=\"POST\"&gt; &lt;/form&gt;";
echo "else alert('As you wish')\"&gt;";
echo "&lt;/form&gt;";
</code></pre>
