Javascript 'dynamic' form concatenating string onto form action
<p>I have the following script constructing a form like so:</p>

<pre><code>var sHTML = "";
sHTML += "&lt;form id='formScore' method='post' action='q_process3.aspx’&gt;";
sHTML += " ";
sHTML += "&lt;input type='hidden' id='Title' name='Title' value= " + title + "&gt;";
sHTML += "&lt;input type='hidden' id='Result' name='Result' value= " + resultstatus + "&gt;";
sHTML += "&lt;input type='hidden' id='ScorePctg' name='ScorePctg' value= " + scorepctg + "&gt;";
sHTML += "&lt;input type='hidden' id='ScorePoints' name='ScorePoints' value= " + scorepoints + "&gt;";
sHTML += "&lt;input type='hidden' id='PassingPctg' name='PassingPctg' value= " + passingpctg + "&gt;";
sHTML += "&lt;input type='hidden' id='PassingPoints' name='PassingPoints' value= " + passingpoints + "&gt;";
sHTML += "&lt;br&gt;&lt;input type='submit'&gt;&lt;br&gt;";
sHTML += "&lt;form&gt;";

document.getElementById("divEmail").innerHTML = sHTML;
document.getElementById("formScore").submit();
</code></pre>

<p>When this submits however, the action/url it points to is:<br>
  q_process3.aspx’%3E%20%3Cinput%20type=<br>
So it looks like it is immediately concatenating the 1st input tag onto the the action property of the form element in the string. What am I doing wrong? Or overlooking? I know it's something simple.</p>
