title: jquery post + serializeArray
body: <p>I am trying to use jquery post + serializeArray() to post a form containing photo field to another php page for processing like this but it doesn't work:-</p>
  
  <pre><code>&lt;script&gt;
  function photo_process(){
       $.post('album/photoprocess.php',$('#form2').serializeArray(),
            function (output){
                $('#result_message').html(output);           
            }
       );
  }
  &lt;/script&gt;
  
  &lt;form id="form2" action="module/album/photoprocess.php" method="post" 
        enctype="multipart/form-data"&gt;
  …
  …
  &lt;/form&gt;
  &lt;input type="submit" value="Submit" onclick="photo_process()"/&gt;
  
  &lt;div id="result_message"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>Actually, can I do so? or I just have written something incorrectly?? thanks!</p>