I have an japplet. I want to do the following with this applet
Whenever a user click on a button i want to pass a variable to a php server. the server will check this value with the stored value in database if true return true if false return false.
Now based on this return value japplet will do something if the return value is false ask the user to enter value again and the same process continue if return value is true then upload a file stored on local disk to another php server that will enter it into mysql database and if successfully uploaded return true else false simultaneously I want to pass variables like filename filesize file extension etc to first server.
My problem is how to communicate between java applet and php server. I can write php code as well as java code like click event, calculate filename filesize etc etc.