title: Upload photo in background with ajax
body: <p>So I'm a bit new to ajax, I just want to see if anyone can help me with this...
  I have my main page. I'll just put the element I'm working with so I don't have to put the whole page.</p>
  
  <pre><code>&lt;input type="file" id="myphoto" /&gt;
  </code></pre>
  
  <p>Then, instead of submitting it, what I want to do is run it through a javascript function with an ajax form in it like this</p>
  
  <pre><code>$.ajax({
      type: "POST",
      url: "myphppage.php",
      "Whatever other code needed"
  })
  </code></pre>
  
  <p>to upload the photo. Then, the form URL could be a php page that moves the photo to a different directory. I hope you know what I mean. Any help would be greatly appreciated...</p>