I have connected my JApplet with one php file, which gets the parameter from my
applet and write it to MySQL database. Parameter is passed using textfield - user enters
string and confirms it's choice clicking on Submit button.
I have made this connection using GET method, but I have to use POST method for sending parameter. I hope somebody can help me to do that.
Here is how I made connection:
In init() method I wrote:
link is a parameter which I defined in HTML file. It's value is
http://localhost/subtest.php.
In my ActionPerformed method for button clicked I wrote:
Submitlink and fileToRead are strings.
Here is my readFile() method:
My subtest.php file looks like this:
Any help to use POST method instead of GET would be appreciated.