将数据从PHP发送到Java应用程序

I have a PHP application with a login page. I would like to send this username and password to my java application for authentication. Is there any idea how can send the data from PHP page to java application? Is there any suggestion that I can retrieve data from PHP to send to java application? Is my idea possible as PHP is on server side while java application works on client side. How to pass data between PHP and java application? Or I need to know JSP to do such task? All suggestions are welcomed!! thanks.

You can use html post method inside php. By using post method, you can send all data to java page.

Suppose, you have written servlet class including post method. So, You can send data from php to servlet in java. By using jdbc connection, you can authenticate username and password..

I hope, this will solve your problem, If not just let me know, I will send you more details...Think about above idea.....

use SOAP - create web service, then make your Java program (I assume the Java software is desktop software) call your web service. http://php.net/manual/en/book.soap.php

or you can just use a simple XML to communicate / passing information between your PHP and Java software.

Google for XML, SOAP, WSDL, RESTful

http://www.roseindia.net/answers/viewqa/JSP-Servlet/12153-Sending-form-data-from-HTML-page-to-SQLserver-2005-database-by-calling-servlet-code.html

find this link, you will get nice example to solve your problem..Just you have make jdbc connections for further operations..