How to programatically push the button?
<form action="login.php" method="get">
<input type="text" name="guest" id="login">
<input type="image" src="/login.gif"
</form>
How can I programatically log in as user "xyz"?
<form action="login.php" method="get">
<input type="text" name="guest" id="login">
<input type="image" src="/login.gif"
</form>
How can I programatically log in as user "xyz"?
Hi,
Therefor that it is just an form script using the get method you can send the data throught a link:
login.php?login=xyz
xyz is your user name, an login is your variable. I would say that this method is shorter and more easer to program than any program. In case that you want to have somebody been recognize you should use cookies:
http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/http/Cookie.html
I guess it is easer for u to use php, even so this is an java forum i would recomend it for you. The code would be something like this:
<?php
header("Location: login.php?login=xyz");
?>
If u like to do it with java, I would say that u have to write somekind of htmlbrowser for java. Therefore it would be the best to use the following packages:
javax.swing.text.html
http://java.sun.com/j2se/1.5.0/docs/api/index.html
and
java.net
http://java.sun.com/j2se/1.5.0/docs/api/index.html