title: how can i get the value of the field of the form (field is created from javascript) in php?
body: <p>I have created the field using the java script (inner Html) and when I use <code>$_POST['field name']</code> it shows <strong>undefined index</strong>.</p>
  
  <p>Here is the code for the field:</p>
  
  <pre><code>function showfield(name){
      if(name=='Masters'){
          document.getElementById('div1').innerHtml = '&lt;label&gt;College/University&lt;/label&gt;&lt;input class="form-control " type="text" id="course" name="uni" placeholder="College/University" /&gt; &lt;br&gt; &lt;label&gt;Course&lt;/label&gt;&lt;input class="form-control " type="text" name="crse" placeholder="Course"/&gt;&lt;br&gt;';
      } 
  }
  </code></pre>
  
  <p>I want to get the value of course and college to next page once the user clicks submit</p>