how can i recieve a file sent by an applet to the server by post method?
<p>how can i receive a file sent by an applet to the server by an applet to the server by post method when on server i need a php file to receive it how can i do so?</p>

<p>i tried this;</p>

<pre><code>&lt;?php
$img_data = $_POST['txt'];
$fp = fopen('test.doc', 'w');
fwrite($fp, $img_data);
fclose($fp);
?&gt;
</code></pre>
