Javascript - getElementById.innerHTML Problem
<p>I want to create a simple formular which leads the user to 2 different pages (depending on what they choose). I'am using getElementById.innerHTML to differ the code within the site to create the two different <code>&lt;form action="SENDTHEUSERHERE" method="POST"&gt;</code>-HTML-Elements.
Here's the code:</p>

<pre><code> if (blabla which works) 
  { 
    document.getElementById("insert").innerHTML = "&lt;form action='insert.php' method='POST'&gt;"; 
  }
 else if (blabla which works) 
  { 
    document.getElementById("service").innerHTML = "&lt;form action='service.php' method='POST'&gt;";  
  }

 // MORE BLABLA-CODE

  &lt;span id='insert'&gt;&lt;/span&gt;
  &lt;span id='service'&gt;&lt;/span&gt;

  // REST OF THE FORMULAR
</code></pre>

<p>When I'am sending this formular, it leads me simply to the same page it was sent from. I guess that means, that those .innerHTML-Elements aren't recognized. Have you any suggestions how I can solve this? Btw.. yes, I'am a Javascript Noob -_-</p>

<p>Thanks for any help!</p>
