Tadeo said:
I want to make a web with a form with some fields.
When the user submits they will generate a new web similar as this:
Mr. <Somebody>:
Your computer is <computer>
-- page1.html
<body>
<form name="myForm" method="GET" action="page2.html">
Your name: <input type="text" name="theName">
<br>
Your computer: <input type="text" name="theComputer">
<br>
<input type="submit" name="submitButton" value="Submit">
</form>
</body>
-- page2.html
<body>
<script type="text/javascript">
if (/theName=([^&]*)/.test(window.location.search) && RegExp.$1) {
document.write('Mr. ' + RegExp.$1 + '.<br>');
} else {
document.write('No name supplied!<br>');
}
if (/theComputer=([^&]*)/.test(window.location.search) && RegExp.$1) {
document.write('Your computer is ' + RegExp.$1 + '.<br>');
} else {
document.write('No computer supplied!<br>');
}
</script>
</body>