title: Passing variable JavaScript with AJAX post to PHP file, nothing happen but there is no error in console log
body: <p>I'm trying to make a search form, based on the date from input field, the variable is exist when I show it with first alert. But after the first alert line, it seems nothing happen and console log don't says anything</p>
  <pre><code>&lt;script type=&quot;text/javascript&quot;&gt;
      
  $(document).ready(function(){
  
      $('#find').click(function(){    
  
          var date = $('#date').val();
          var month = $('#month').val();
          var year = $('#year').val();
          var search = year+'-'+month+'-'+date;
          
           //alert(search); &lt;--currently the alert stop by the comment tag , its work well if the comment tag remove      
  
              $.ajax({
              url:'page/report/find.php',
              method:'post',
              data:{data:search},
              success:function(data){
  
               $('#find_date').html(data); &lt;-- not send value to the div id aka blank result
               alert(data);   &lt;--not showing alert aka nothing happen
               console.log(data); &lt;--not showing error 
  
              }   
  
              });     
      });
  });
  
  &lt;/script&gt;
  </code></pre>
  <p>Below is the PHP file waiting the variable from AJAX to proccess</p>
  <pre><code>&lt;?php
  error_reporting(E_ALL); 
  mysqli_report(MYSQLI_REPORT_ERROR|MYSQLI_REPORT_STRICT);
  ini_set('display_errors',1);
  
  
  if(isset($_POST)){
  
  //parse_str($_POST['data'],$_POST); 
  
  $message = $_POST['data'];
  
  } 
  
  echo $message;
  
  ?&gt;
  </code></pre>
  <p>And below is the form</p>
  <pre><code>&lt;form name=&quot;edit&quot; id=&quot;edit_frm&quot; method=&quot;post&quot;&gt;
  &lt;table class=&quot;edit-table&quot;&gt;
      &lt;tr&gt;
          &lt;td colspan=&quot;6&quot; align=&quot;center&quot;&gt;
              &lt;input type=&quot;text&quot; id=&quot;date&quot; size=&quot;1&quot; value=&quot;&quot; placeholder=&quot;date&quot;&gt;&amp;nbsp;-&amp;nbsp;
              &lt;input type=&quot;text&quot; id=&quot;month&quot; size=&quot;1&quot; value=&quot;&quot; placeholder=&quot;month&quot;&gt;&amp;nbsp;-&amp;nbsp;
              &lt;input type=&quot;text&quot; id=&quot;year&quot; size=&quot;2&quot; value=&quot;&quot; placeholder=&quot;year&quot;&gt;&amp;nbsp;
              &lt;input type=&quot;button&quot; id=&quot;find&quot; value=&quot;&lt;&lt; search &gt;&gt;&quot; /&gt;
              &lt;div id=&quot;find_date&quot;&gt;&lt;/div&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
  &lt;/table&gt;';
  </code></pre>