title: How to get text filed value in JavaScript and php to insert in SQL
body: <p>I need to know how to get the value in text filed which sends to JavaScript and request it in Php to insert in SQL.Here are my codes,</p>
  
  <p><strong>Text Filed:</strong> </p>
  
  <pre><code>Applicant Number&lt;input type="text" size="2"  placeholder="e.g. 5"  id="AppNum&lt;?php $ApplicantID?&gt;" name="AppNum&lt;?php echo $ApplicantID?&gt;"&gt;
  </code></pre>
  
  <p><strong>JavaScript code:</strong></p>
  
  <pre><code>$.ajax({
  type: "get",
  url: "accept.php",
  dataType: 'json',
  data: dataString,
  success: function(data) {
      $.each(data, function(key, value) {
          alert($('input[name="AppNum'+key+'"]').val());
  
      });
   }
  </code></pre>
  
  <p>I did tried below code, but it didn't work.</p>
  
  <p><strong>Php code:</strong></p>
  
  <pre><code>$AppNum="AppNum".$ApplicantID;
  
  $AppNum=$_REQUEST[$AppNum]; 
  </code></pre>
  
  <p>I'm looking forward to your great commnets that could help me to figure out this problem. 
  thank you.</p>