Sending data to a remote form
<p>Let's say I have a form from a remote area <code>http://example.com/form.php</code> which contains:</p>

<pre><code>&lt;form action="" method="post" enctype="multipart/form-data"&gt;
  &lt;label for="file"&gt;Filename:&lt;/label&gt;
  &lt;input type="file" name="file" id="file" /&gt; 
  &lt;input type="text" name="name"&gt;
  &lt;input type="text" name="age"&gt;
  &lt;input type="text" name="sex"&gt;
  &lt;br /&gt;
  &lt;input type="submit" name="submit" value="Submit" /&gt;
&lt;/form&gt;
</code></pre>

<p>How do I send data to that form, submit it and fetch whatever the result of the form submission is? I found a function in the php site but I  don't know how to use it or if it's the right one to use.</p>

<p><a href="http://www.php.net/manual/en/function.stream-context-create.php#90411" rel="nofollow">http://www.php.net/manual/en/function.stream-context-create.php#90411</a></p>
