Help passing GET data to a php file in the same location as my Java applet
<p>I have a java applet trying to pass some GET data to a php file in the same directory as my applet. When I start a url connection to the file.php and pass the data, I don't get anything, however when I append the full URL in front of the PHP file, it works.</p>

<p>Here's what I have:</p>

<pre><code>URL sp = new URL ("file.php?data1=" + data1 + "&amp;data2=" + data2 + "&amp;data3=" + data3);
BufferedReader in  = new BufferedReader(new InputStreamReader(sp.openStream()));
</code></pre>

<p>But, the data only gets passed if i add my full <a href="http://www.website.com/" rel="nofollow">http://www.website.com/</a> url in front of file.php</p>

<p>EDIT:
    It works now, with a URL test = new URL(getCodeBase(), "form.php");</p>
