|
|
Best books about Javasript
|
The
following code will transfer hiddend values in a form on your
HTML file to a remote JSP file, which accepts "POST" method.
In your HTML file, type the following codes for hidden values:
<h3>You are directing to Ingenuity
site. Please wait....</h3>
<form name ="form1" action="http://your_remote_jspfileat.jsp" method="post">
<input type="hidden" name="name\" value="Your name">
<input type="hidden" name="hobby" value="Sport">
<input type="button" onclick="submit()">
</form>
Copy
the following Javascript into your HTML file. location.search.length < 1 is
used to make sure the data from your form will only be submited
once.
|
|
|
|