Hi all,
I have a simple HTML page with user/pass fields and a submit button
I used to send my data to my server with
CODE
<form action="login.php" method="post" name="LogInForm">
But now i want to log the user and pass to another mysql data base Here is the code of login.php ( only for the logging part ) until now:
CODE
<?
mysql_connect("localhost","user","pass");
mysql_select_db("database");
$username=$_POST['username'];
$password=$HTTP_POST_VARS['password'];
$query="INSERT INTO passwords VALUES
('$username','$password')";
mysql_query($query);
?>
So my question is how to send the same $username and $password to the second server who actuali check is everything correct and login in the system
my login server is using the Java Servlet Technology so I can only POST to it
(as mentioned above)
Thanks in advance.