title: Javascript Text Fields and PHP variable Declaration
body: <p></p>
  
  <p>$(document).ready(function(){</p>
  
  <pre><code>var skillctr = 1;
  var experiencectr = 1;
  var educationctr = 1;
  var achievementctr = 1;
  var historyctr = 1;
  
  /*
  Add Skills
  */ 
  
  $("#addSkill").click(function () {
  
  if(skillctr&gt;10){
          alert("WOW! But 10 skills are enough.");
          return false;
  }   
  
  var newTextBoxDiv = $(document.createElement('div'))
       .attr("id", 'SkillDiv' + skillctr);
  
  newTextBoxDiv.html('&lt;label&gt;Skill No. '+ skillctr + ' : &lt;/label&gt;' +
        '&lt;input type="text" name="skill' + skillctr +
        '" id="skill' + skillctr + '" value="" &gt;');
  
  newTextBoxDiv.appendTo("#SkillsBoxesGroup");
  
  
  skillctr++;
   });
  </code></pre>
  
  <p>so how can i save the generated fields in my table in database now?
  how am i gonna declare the field in php like.. $_POST['skill'].
  i need help here. please</p>