Not a problem.
Here's the html code for the page:
<html>
<body>
<form action ="action.php" method="post">
<p>Your name: <input type="text" name="strname"/></p>
<input type="submit"/>
</body>
</html>
Here is action.php called by the main page (which is irrelevant to the java program) but you asked for it here it is.
html>
<body>
<?php
$strname=$_POST['strname'];
print "you typed:$strname";
?>
</body>
</html>