Below is the code for a contact form and a confirmation oage that I am working on. I was wondering if someone can tell me how I would get the values entered on the form to display on my confirmation page.
The form code and confirmation page are below.
Thanks.
Form page
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"
http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-US">
<head>
<title>Customer Demographics</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<meta name="keywords" content="starter,coursewor
k">
<meta name="description" content="Demographics Form">
<meta name="author" content="Jon Schab">
<meta name="revision" content="1.0">
</head>
<body>
<h1 align="center">Kudler Fine Foods<br>
Customer Contact Form
</h1>
<table width="70%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center"><form action="customerformsubmit
ted.htm" method="post" name="demographics" id="demographics">
<label>First Name:
<input name="firstname" type="text" id="firstname">
</label>
<label>Last Name:
<input name="lastname" type="text" id="lastname">
</label>
<br>
<br>
<label> Address:
<input name="address" type="text" id="address" size="60">
</label>
<br>
<br>
<label>Email:
<input name="email" type="text" id="email">
</label>
<label>Phone:
<input name="phone" type="text" id="phone">
</label>
<br>
<br>
<input type="submit" name="Submit" value="Submit">
<input name="Clear" type="reset" id="Clear" value="Clear">
</form>
</td>
</tr>
</table>
</body>
</html>
__________________________
__________
__________
__________
__________
__________
___
confirmation page
trying to display between the strong tags.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"
http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-US">
<head>
<title>Customer Demographics</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<meta name="keywords" content="starter,coursewor
k">
<meta name="description" content="Demographics Form">
<meta name="author" content="Jon Schab">
<meta name="revision" content="1.0">
</script>
<script language="JavaScript"><!--
<!--
/* Copyright
http://www.perlscriptsjavascripts.com Free and commercial Perl and JavaScripts */
// page to go to if cookie exists
go_to = "index_completed.html";
// number of days cookie lives for
num_days = 999;
function ged(noDays){
var today = new Date();
var expr = new Date(today.getTime() + noDays*24*60*60*1000);
return expr.toGMTString();
}
function readCookie(cookieName){
var start = document.cookie.indexOf(co
okieName);
if (start == -1){
document.cookie = "seenit=yes; expires=" + ged(num_days);
} else {
window.location = go_to;
}
}
readCookie("seenit");
// -->
</script>
</head>
<body>
<h1 align="center">Thank you for your submission! </h1>
<table width="70%" border="0" align="center" cellpadding="5" cellspacing="0">
<tr>
<td colspan="2" align="center">You Sumbitted the following information: </td>
</tr>
<tr>
<td width="50%" align="right">First Name:</td>
<td width="50%" align="left"><strong>lastn
ame</stron
g></td>
</tr>
<tr>
<td align="right">Last Name:</td>
<td align="left"><strong>lastn
ame</stron
g></td>
</tr>
<tr>
<td align="right">Address:</td
>
<td align="left"><strong>addre
ss</strong
></td>
</tr>
<tr>
<td align="right">Email:</td>
<td align="left"><strong>email
</strong><
/td>
</tr>
<tr>
<td align="right">Phone:</td>
<td align="left"><strong>phone
</strong><
/td>
</tr>
</table>
</body>
</html>
Start Free Trial