Simply interface them using HTTP GET or POST vars, thats the easiest way to interface them.. with PHP 4 use: $_POST["varname"] , $_GET["varname"] -or- $HTTP_POST_VARS["varname"], $HTT_GET_VARS["varname"] and in java servlet use: public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { String variablevalue = req.getParameter("extvarname"); } or in JSP: String varvalue = request.getParameter("varname"); On Thu, 22 May 2003, Bruno Pereira wrote: > Hello, > can someone tell me how to use php with Java, like passing var to one > another? > Thanks. > > Cumprimentos > > Bruno Pereira > DSI > 218452059 > bruno.pereira@netvoice.pt > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php