I can't print the value from the form's input at client.html to the table in server.html. It has to be written in Javascript and by using GET Method for form.
client.html:
<form action="server.html" method="get">
<p>
Name:
<input type="text" id="txtname" name="txtname" />
</p>
</form>
server.html:
<head>
<script type="text/javascript">
function getUrlVars() {
var vars = {};
var parts = window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi,
function (m, key, value) {
vars[key] = value;
});
return vars;
}
var name= unescape(getUrlVars()[document.getElementById("txtname")]);
document.getElementById("idname").innerHTML=name;
</script>
</head>
<body>
<table>
<tr>
<td>Name:</td>
<td id="idname"></td>
</tr>
</table>
<body>