Sorry to keep bugging you but could someone look at this for me. I am not understanding it. Do I need a separate page for the previous and next forms. Here is my code now. I know there are a lot of mistakes but I am trying. Any help would be greatly appreciated. Thank you http://www.webdeveloper.com/forum/im...lies/smile.gif

First Page

Code:
<head>
<title>CarRental</title>
<meta http-equiv="content-type" content="text/html;
charset=iso-8859-1" />
<script type="text/javascript" src="ProductInfo.html"></script>
</head>
<body>
<h1>Car Rental</h1>
<h2>Reservations</h2>
<form action=""method="get" enctype="application/x-www-form-urlencoded">
<p><input type="button" name="Show" value=
" Show" onclick="nextForm()" /> an existing reservation or create a new one below.</p>
<h2>Name and Address</h2>
<p>First Name
<input type="text" name="name" size="30" />
Last Name
<input type="text" name="name" size="30" /></p>
<p>Street Address 1
<input type="text" name="address" size="50" /></p>
<p>Street Address 2
<input type="text" name="address" size="50" /></p>
<p>City
<input type="text" name="city" size="25" />
State <input type="text"
name="state" size="5" maxlength="2" />
Zip <input type="text" name=
"zip" size="15" maxlength="5" /></p>
<p>Phone
<input type="text" name="telephone" size="20" />
Fax
<input type="text" name="Fax" size="20" /></p>
<h2>Reservation Request</h2>
<p>Pickup Date
<select name="month">
<option value="Jan">Jan</option>
<option value="Feb">Feb</option>
<option value="Mar">Mar</option>
<option value="Apr">Apr</option>
<option value="May">May</option>
<option value="Jun">Jun</option>
<option value="Jul">Jul</option>
<option value="Aug">Aug</option>
<option value="Sep">Sep</option>
<option value="Oct">Oct</option>
<option value="Nov">Nov</option>
<option value="Dec">Dec</option>
</select>
<select name="Day">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="24">24</option>
<option value="25">25</option>
<option value="26">26</option>
<option value="27">27</option>
<option value="28">28</option>
<option value="29">29</option>
<option value="30">30</option>
<option value="31">31</option>
</select>
<select name="Year">
<option value="2013">2013</option>
<option value="2014">2014</option>
</select></p>
<p>Return date
<select name="month">
<option value="Jan">Jan</option>
<option value="Feb">Feb</option>
<option value="Mar">Mar</option>
<option value="Apr">Apr</option>
<option value="May">May</option>
<option value="Jun">Jun</option>
<option value="Jul">Jul</option>
<option value="Aug">Aug</option>
<option value="Sep">Sep</option>
<option value="Oct">Oct</option>
<option value="Nov">Nov</option>
<option value="Dec">Dec</option>
</select>
<select name="Day">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="24">24</option>
<option value="25">25</option>
<option value="26">26</option>
<option value="27">27</option>
<option value="28">28</option>
<option value="29">29</option>
<option value="30">30</option>
<option value="31">31</option>
</select>
<select name="Year">
<option value="2013">2013</option>
<option value="2014">2014</option>
</select></p>
<h3>Pick the type of car you want!</h3>
<select name="Vechile Type">
<option value="car">Car</option>
<option value="truck">Truck</option>
<option value="van">Van</option>
<option value="toyota">Toyota</option>
<option value="honda">Honda</option>
<option value="chevy">Chevy</option>
<option value="bmw">BMW</option>
<option value="dodge">Dodge</option>
</p>
<input type="button" name="Submit Reservation" value="Submit Reservation" onclick="nextFrom()" />
</form>
</body>
</html>
Second Page

Code:
<!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">
<head>
    <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
    <title>customerInfo</title>
	<script type="text/javascript">
	/* <![CDATA[ */
		function previousForm() {
		saveCustomerInfo();
			location.href="CustomerInfo.html";
		}
		function nextForm() {
		document.cookie = "name=" + encodeURIComponent(
		document.forms[0].name.value);
		document.cookie = "address1=" + encodeURIComponent(
		document.forms[0].address1.value);
		document.cookie = "address2=" + encodeURIComponent(
		document.forms[0].address2.value);
		document.cookie = "city=" + encodeURIComponent(
		document.forms[0].city.value);
		document.cookie = "state=" + encodeURIComponent(
		document.forms[0].state.value);
		document.cookie = "zip=" + encodeURIComponent(
		document.forms[0].zip.value);
		document.cookie = "telephone=" + encodeURIComponent(
		document.forms[0].telephone.value);
		document.cookie = "fax=" + encodeURIComponent(
		document.forms[0].fax.value);
		document.cookie = "pickup=" + encodeURIComponent(
		document.forms[0].pickupDate.value);
		document.cookie = "return=" + encodeURIComponent(
		document.forms[0].returnDate.value);
		document.cookie = "vechileType=" + encodeURIComponent(
		document.forms[0].vechileType.value);
		location.href = "customerInfo.html";
		function populateCustomerInfo() {
		if (document.cookie ) {
		var queryData = decodeURIComponent(
		document.cookie);
		var queryArray = queryData.split("; ");
		document.forms[0].name.value = queryArray[0]
		.substring(queryArray[0]
		.lastIndexOf("=") + 1);
		document.forms[0].address1.value = queryArray[1]
		.substring(queryArray[1]
		.lastIndexOf("=") + 1);
		document.forms[0].address2.value = queryArray[2]
		.substring(queryArray[2]
		.lastIndexOf("=") + 1);
		document.forms[0].city.value = queryArray[3]
		.substring(queryArray[3]
		.lastIndexOf("=") + 1);
		document.forms[0].state.value = queryArray[4]
		.substring(queryArray[4]
		.lastIndexOf("=") + 1);
		document.forms[0].zip.value = queryArray[5]
		.substring(queryArray[5]
		.lastIndexOf("=") + 1);
		document.forms[0].telephone.value = queryArray[6]
		.substring(queryArray[6]
		.lastIndexOf("=") + 1);
		document.forms[0].fax.value = queryArray[7]
		.substring(queryArray[7]
		.lastIndexOf("=") + 1);
		document.forms[0].pickup.value = queryArray[8]
		.substring(queryArray[8]
		.lastIndexOf("=") + 1);
		document.forms[0].return.value = queryArray[9]
		.substring(queryArray[9]
		.lastIndexOf("=") + 1);
		document.forms[0].vechileType.value = queryArray[10]
		.substring(queryArray[10]
		.lastIndexOf("=") + 1);
		}
		}
		/* ]]> */
	</script>
</head>
<body onload="populateNextForm()">
  <h2>Customer Information</h2>
  <form action="" method="get" enctype="application/x-www-form-urlencoded">
     <p class="txt_content_title">
      Name<br />
     <input type="text" name="name" size="60" /></p>
	 <p class="txt_content_title">
     Address 1<br />
    <input type="text" name="address1" size="60" /></p>
 <p class="txt_content_title">
   Address 2<br />
 <input type="text" name="address2" size="60" /></p>
 <p class="txt_content_title">
   City, state, zip<br />
  <input type="text" name="city" size="38" />
  <input type="text" name="state" size="2" maxlength="2" />
  <input type="text" name="zip" size="10" maxlength="10" /></p>
   <p class="txt_content_title">
 Telephone<br />
  <input type="text" name="telephone" size="60" /></p>
  <p class="txt_content_title">
  Fax<br />
   <input type="text" name="fax" size="60" /></p>
   <p class="txt_content_title">
  Pickup Date<br />
 <input type="text" name="pickupDate" size="60" /></p>
 <p class="txt_content_title">
   Return Date<br />
   <input type="text" name="returnDate" size="60" /></p>
   <p class="txt_content_title">
   Vechile Type<br />
 <input type="text" name="vechileType" size="60" /></p>
   <p><input type="button" name="next" value=" Next " onclick="nextForm()" /></p>
   </form>
</body>
</html>