title: I want the appearance of div when the conditions in the php file
body: <p>Hi I want to show the div (msga) when the first condition i want the appearance of div (msgb) when the second condition</p>
  
  <p>my php code</p>
  
  <pre><code>if(isset($_POST['aa'])) {
   echo "a";
  }
  if (isset($_POST['bb']))) {
   echo "b";
  }
  </code></pre>
  
  <p>my ajax code</p>
  
  <pre><code>&lt;script&gt;
  $('#form')
  .submit( function(e) {
  $.ajax({
      url: 'php.php',
      type: 'POST',
      data: new FormData( this ),
      processData: false,
      contentType: false,
      success: function(response){
          if (response == 'a') {
              $('#msga').show();
          }else if (response == 'b') {
              $('#msgb').show();
          }
      }
  });
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>my html code</p>
  
  <pre><code>&lt;div id="msga" style="display: none;"&gt;aaaaaaaaaa&lt;/div&gt;
  &lt;div id="msgb" style="display: none;"&gt;bbbbbbbbbb&lt;/div&gt;
  
  &lt;form id="form" method="post" enctype="multipart/form-data"&gt;
  
   &lt;input name="test" type="text" value="test"/&gt;
  
   &lt;input class="up" type="file" name="up" /&gt;
  
   &lt;button class="submit"&gt;send now&lt;/button&gt;
  
  &lt;/form&gt;
  </code></pre>