title: upload picture from android to a php server
body: <p>I'm trying to upload a <code>picture/imageview</code> to php server.
   This server for uploading photos looks like this:</p>
  
  <pre><code>&lt;h2&gt;Your Photo(s)
              &lt;span style="font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
                  &lt;a  href="javascript:toggleUpload('upload_pictures', 'upload_link')" id="upload_link"&gt;Add new photo!&lt;/a&gt;
                              &lt;/span&gt;
          &lt;/h2&gt;
      &lt;div id="upload_pictures" style="display: none;"&gt;
  
          &lt;div id="leftcol"&gt;&lt;form action="//here is set the homepage" 
                        method="post" enctype="multipart/form-data"
                        name="form" target="_self" id="form"&gt;
                      &lt;input type="hidden" name="p" value="a" /&gt;
                      &lt;input type="hidden" name="uid" value="100000894591455" /&gt;
  </code></pre>
  
  <p>The problem is that I don't know how to upload a picture properly on this server-desgined this way.
  I don't know what codding method I should use or what to put in the post request.All my attempts of uploading a photo to that link returned a broken link!</p>
  
  <p>If you would point me in the right direction I would really appreciate.Thanks</p>