I have a HTML form (called form.html)and a JavaScript function such that when form is submitted, information in that form will be displayed.
Now I want all those info will be shown in new HTML page (called confirm.html), where should I go from?
NOTE: No php or sever-side or anything that really seriously related, it's just simple OFFLINE HTML-form problem, I just have 2 html place in same folder, I will test it on my browser, that's it. Only thing that I worry is how to use information from form.html file in confirm.html file since they are obviously separated.
Thank you very much, here is my form.html ( I dont have confirm.html yet)
<HTML>
<HEAD>
<TITLE>Contact</TITLE>
<script type=text/javascript>
function addtext()
{
var fname = document.myform.first_name.value;
var lname = document.myform.last_name.value;
var email = document.myform.email.value;
document.writeln(Thank you! You have just entered the following:);
document.writeln(<pre>);
document.writeln(First Name : + fname);
document.writeln(Last Name : + lname);
document.writeln(Email Address : + email);
}
</script>
</HEAD>
<BODY>
<center>
<b>CONTACT US</b> <br></br>
<form name=myform>
<label for=first_name>First Name </label>
<input type=text name=first_name maxlength=50 size=30>
<br>
<label for=last_name>Last Name </label>
<input type=text name=last_name maxlength=50 size=30>
<br>
<label for=email>Email Address</label>
<input type=text name=email maxlength=80 size=30>
<br>
<input type=submit value=Submit onClick=addtext()>
</form>
</BODY>
</HTML>