title: Isset does not work with ajax call
body: <p>I am making a simple page where user can upload a image without refreshing the whole page. But  <code>if(isset($_post[oneimgtxt]))</code> is not working.. 
  here is my serverSide Code that upload image :</p>
  
  <pre><code>&lt;?php
  $maxmum_size = 3145728; //3mb 
  $image_type_allowed = array(IMAGETYPE_GIF, IMAGETYPE_JPEG, IMAGETYPE_PNG, IMAGETYPE_BMP);
  if ($_SERVER["REQUEST_METHOD"] == "POST") {
      if(isset($_POST["oneimgtxt"])){//&lt;!------------------ this line is not working
          if((!empty($_FILES[$_FILES['upimage']['tmp_name']])) &amp;&amp; ($_FILES["upimage"]['error'] == 0)){
              $file=$_FILES['upimage']['tmp_name'];
              $image_count = count($_FILES['upimage']['tmp_name']);
              if($image_count == 1){
                  $image_name = $_FILES["upimage"]["name"];
                  $image_type = $_FILES["upimage"]["type"];
                  $image_size = $_FILES["upimage"]["size"];
                  $image_error = $_FILES["upimage"]["error"];
                  if(file_exists($file)){//if file is uploaded on server in tmp folder (xampp) depends !!
                      $filetype =exif_imagetype($file); // 1st method to check if it is image, this read first binary data of image..
                      if (in_array($filetype, $image_type_allowed)) {
                          // second method to check valid image
                          if(verifyImage($filename)){// verifyImage is function created in fucrenzione file.. using getimagesize
                              if($ImageSizes &lt; $maxmum_size){//3mb 
                                  $usr_dir = "folder/". $image_name;
                                  move_uploaded_file($file, $usr_dir);
                              }else{
                                  $error_container["1006"]=true;
                              }
                          }else{
                              $error_container["1005"]=true;
                          }
                      }else{
                          $error_container["1004"]=true;
                      }
                  }else{
                      $error_container["1003"]=true;
                  }
              }else{
                  $error_container["1002"]=true;
              }
          }else{
              $error_container["1007"]=true;
          }
      }else{//this else of image issset isset($_POST["oneimgtxt"])
          $error_container["1001"]=true;//"Error during uploading image";
      }
      echo json_encode($error_container);
  }
  ?&gt;
  </code></pre>
  
  <p>in chrome inspect element i got this..
  <a href="http://i.stack.imgur.com/iL5pj.jpg" rel="nofollow">image</a>
  and this is my js code with ajax...</p>
  
  <pre><code>$(".sndbtn").click( function(e){
          var form = $("#f12le")[0];
          var formdata = new FormData(form)
          $.ajax({
              type:'POST',
              //method:'post',
              url: "pstrum/onphotx.php",
              cache:false,
              data: {oneimgtxt : formdata},
              processData: false,
              contentType: false,
              success:function (e){console.log(e);}
          });
      });
  </code></pre>
  
  <p>Here is html code: </p>
  
  <pre><code>&lt;form  method="post" id="f12le" enctype="multipart/form-data"&gt;
     &lt;input type="file" name="upimage"/&gt;
     &lt;label for="imgr"&gt;Choose an Image..&lt;/label&gt;
     &lt;textarea placeholder="Write something about photo"&gt;&lt;/textarea&gt;
     &lt;input   type="button" name="addimagedata" value="Post" class="sndbtn"/&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Thanks for any help.</p>