HTML form fill
This is really a combined Java/HTML question;
I have a Java app I'm writing and it will require a license. To request a license, the java opens a particular website where the user will fill in some html forms and click "submit". So far, no problems.
But, there is a long license request key, and I'd like to avoid making the user type this in by hand - I want the java to pass the key to the webpage and fill in that value automatically.
Is there a way to do this?
[491 byte] By [
seabhcana] at [2007-11-27 8:07:44]

# 1
Off the top of my head a quick way to do it would be to format the url to carry a parameter and use Javascript/Perl/PHP to fill in the value.
Example (append the license to the url)
http://www.yourpage.com/yourform.htm?12345565656
On the page:
<script language =" javascript">
var query = window.location.search.substring(1);
function getLicense() {
if(query != '')
//Set the value of your input box with the value of query
}
</script>
-Jordan