madman070578
10-25-2005, 06:03 PM
I've created the following HTML page with a form. I am wanting to display the data captured in the form, on the page formcheck1.html.
Is this possible? And can anyone give me any clues on the code required to display the fields on the second page?
Cheers.....
<html>
<head>
<title>Page title</title>
<script language="JavaScript">
<!--
function checkform()
{
if (custform.custname.value=="")
{
alert ("No Data entered for Customer Name");
return false;
}
}
return true;
</script>
</head>
<body MARGINWIDTH='0 MARGINHEIGHT='0' leftmargin='0' topmargin='0'>
<FORM name="custform" action="formcheck1.html" onsubmit="return checkform()" method="post">
<table border='0' cellspacing='0' cellpadding='0' width='100%'>
<tr>
<td>Customer Name</td>
<td><INPUT TYPE='text' size='50' name='custname'></td>
</tr>
<tr>
<td>E mail Address</td>
<td><INPUT TYPE='text' size='50' name='custemail'></td>
</tr>
<tr>
<td>Credit Card Number</td>
<td><INPUT TYPE='text' size='50' name='custccno'></td>
</tr>
<TR>
<TD><input type='SUBMIT' value='click here!!'></TD>
<TD> </TD>
</TR>
</table>
</FORM>
</body>
</html>
Is this possible? And can anyone give me any clues on the code required to display the fields on the second page?
Cheers.....
<html>
<head>
<title>Page title</title>
<script language="JavaScript">
<!--
function checkform()
{
if (custform.custname.value=="")
{
alert ("No Data entered for Customer Name");
return false;
}
}
return true;
</script>
</head>
<body MARGINWIDTH='0 MARGINHEIGHT='0' leftmargin='0' topmargin='0'>
<FORM name="custform" action="formcheck1.html" onsubmit="return checkform()" method="post">
<table border='0' cellspacing='0' cellpadding='0' width='100%'>
<tr>
<td>Customer Name</td>
<td><INPUT TYPE='text' size='50' name='custname'></td>
</tr>
<tr>
<td>E mail Address</td>
<td><INPUT TYPE='text' size='50' name='custemail'></td>
</tr>
<tr>
<td>Credit Card Number</td>
<td><INPUT TYPE='text' size='50' name='custccno'></td>
</tr>
<TR>
<TD><input type='SUBMIT' value='click here!!'></TD>
<TD> </TD>
</TR>
</table>
</FORM>
</body>
</html>