title: PHP undefined Error while passing data from Ajax
body: <p>Simply i want to pass Numeric id to Php page and Using $_POST['id'] i want use it, But Getting Undefined error. check screen shot <a href="https://imgur.com/a/M1v4mEX" rel="nofollow noreferrer">https://imgur.com/a/M1v4mEX</a> and check code below </p>
  
  <p>===>edit.php</p>
  
  <pre><code>  $('#update').click(function(){
             var serialData = new FormData($("#regForm")[0]), 
                 s = location.search.split('='), 
                searchId = s[s.length-1];
  
                console.log(serialData);
                console.log(searchId);
           serialData.append('id',9);
          $.ajax({
              method:'POST', 
              url:'update.php',
              dataType:'json', 
              data:  {id:9},
              success:function(jsonObj){
              console.log(jsonObj);
            }
          });
       });
  </code></pre>
  
  <p>==>update.php </p>
  
  <pre><code>             &lt;?php 
                   if(isset($_POST['submit'])){
  
                    var_dump($_POST['id']);
                           exit();
  
               }
               ?&gt;
  </code></pre>