Here is the code I have done.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta name="generator" content="HTML Tidy for Linux (vers 6 November 2007), see www.w3.org" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Kudler Fine Foods Customer Mailing List</title>
<style type="text/css">
/*<![CDATA[*/
body
{
background-color: #ECE4DF;
}
/*]]>*/
</style>
<style type="text/css">
/*<![CDATA[*/
div.c1 {text-align: center}
/*]]>*/
</style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
/*<![CDATA[*/
tr.c6 {background-color: blue}
address.c5 {font-family: sans-serif; font-size: 0.6em; font-style: normal; color: white}
hr.c4 {color: blue; background-color: blue; height: 1}
td.c3 {font-family: sans-serif; font-size: large; font-weight: bold}
thead.c2 {font-family: sans-serif}
td.c1 {font-size: 1.2em; color: black; font-weight: bold; font-style: italic}
/*]]>*/
</style>
</head>
<body>
<div class="c1">
<h3>Cover Page</h3>
</div>
<div class="c1">
<h2>************</h2>
</div>
<div class="c1"> ********</div>
<div class="c1"> SR-kf-011</div>
<div class="c1">Requester: Yvonne Reynolds</div>
<div class="c1">Kudler Fine Foods Customer Mailing List</div>
<script type="text/javascript">
//<![CDATA[
<!-- Define cookie -->
set_cookie("LoggedIn",true,10);
function set_cookie(fname, value, days)
{
if (days)
{
var date = new Date();
date.setTime(date.getTime() + (days*24*60*60*1000));
var expires = "; expires=" + date.toGMTString();
} else var expires = "";
var host = "your_domain.com";
var domain = "; domain=" + host;
document.cookie = fname + "=" + value + expires + domain + "; path=/";
get_cookie("LoggedIn");
function get_cookie(fname)
{
var EQ = fname + "=";
var ca = document.cookie.split(';');
for (var i=0;i < ca.length;i++)
{
var c = ca[i];
while (c.charAt(0)==' ') c = c.substring(1,c.length);
if (c.indexOf(EQ) == 0) return c.substring(EQ.length,c.length);
}
return null;
}
<!-- Form Submission check -->
function submitForm() {
onsubmit="return submitForm()"
if (document.forms[0].fname.value == ""
|| document.forms[0].lname.value == "") {
window.alert("You must enter your first and last names.");
return false;
}
else
{
if (document.forms[0].address.value == ""
|| document.forms[0].address1.value == "")
{
window.alert("You must enter a mailing address or email address.");
return false;
}
else
{
return true;
}
}
}
|| document.forms[0].city.value == ""
|| document.forms[0].city.value == ""
|| document.forms[0].state.value == ""
|| document.forms[0].zip.value == ""
|| document.forms[0].phone.value == ""
window.alert("You must enter your information.");
return false;
}
return true;
//]]>
</script>
<form name="request" id="request" action="AcknowledgementPage.html" onsubmit="return submitForm();
" onsubmit="return validate_form();" method="get" enctype="application/x-www-form-urlelncoded">
<table border="0" cellspacing="0" cellpadding="5" width="620">
<thead class="c2"><!-- Company Logo and Heading -->
<tr>
<td valign="top" width="180" rowspan="2"><img src="Kudler-food-blk.gif" alt="kudler" width="275" height="175" /></td>
<td class="c1" valign="top" align="center">Kudler Fine Foods Customer Information Form</td>
</tr>
</thead>
<!-- Customer Information Heading -->
<tr>
<td class="c3" colspan="2" width="100%">Customer Information</td>
</tr>
<tr>
<td colspan="2">
<hr class="c4" /></td>
</tr>
<!-- Contact Information to be input -->
<tr>
<td valign="top" colspan="2">
<table>
<tr>
<td width="100"><label for="fname">First Name</label></td>
<td><input type="text" name="fname" id="fname" size="30" >
<td><label for ="lname">Last Name</label></td>
<td><input type="text" name="lname" id="lname" size="30" >
</td>
</tr>
<tr>
<td><label for ="address1">Address</label></td>
<td><input type="text" name="address" id="address" size="60" ></td>
</tr>
<tr>
<td><label for="city">City</label></td>
<td><input type="text" name="city" id="city" size="40" /><label
for="state">State</label>
<input type="text" name="state" id="state" size="3">
<td><label for="zip">ZIP</label></td>
<td><input type="text" name="zip" id="zip" size="10" maxlength="10">
</td>
</tr>
<tr>
<td><label for="phone">Phone</label></td>
<td><input type="text" name="phone" id="phone" size="12">
</td>
</tr>
<tr>
<td><label for="email">Email Address</label></td>
<td><input type="text" name="email" id="email" size="40"></td>
</tr>
</table>
</td>
<tr>
<td valign="top">
<input type="checkbox" name="use" id="mail" value="mail" >
<label for="mail">Add me to your Mailing List</label><br />
</td>
</tr>
<tr>
<td colspan="2">
<hr style="color: #099; background-color: #099; height: 1" >
</td>
</tr>
<!-- Customer Comments Section -->
<tr>
<td width="100" valign="top">
<label for="comments">Comments</label>
</td>
<td valign="top">
<textarea name="comments" id="comments" rows="6" cols="50">
</textarea>
</td>
</tr>
<!-- Buttons for submission or cancelation -->
<tr>
<td valign="top" colspan="2" align="center">
<input type="submit" value="Submit">
<input type="reset" value="Cancel" />
</td>
<!-- Company Name and locations -->
<tr class="c6">
<td colspan="2" align="center" valign="bottom">
<address class="c5">Kudler Fine Foods ?Shopping the World for the Finest Foods ?La Jolla ?Del Mar ?Encinitas ?/address>
</td>
</tr>
</table>
</form>
</body>
</html>
Am I just not listing it in the right place?
can someone steer me in the right direction?
This post has been edited by no2pencil: 20 June 2012 - 01:51 AM
Reason for edit:: Added code tags

New Topic/Question
Reply


MultiQuote






|