Dreamweaver HELP with passing form data to .asp page

They have: 1 posts

Joined: Mar 2006

Here's my problem,
I have a form where the user fills out various information about themselves,such as Last Name, First Name, Address, etc. . I'm having a problem displaying the information on an .asp page after the user hits the "submit" button.
Basically, on the .asp page, I want to thank the user using their first and last name, and also display their city and state which they entered on the
forms page. The problem is tha I can't get the .asp page to work properly.
I was wondering if anyone could help me out with this. Basically if anyone could help me with the code for the .asp page that would be great. Here is the code for the forms page (sorry about the length of it):

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w
3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
&lt;script language="JavaScript" type="text/JavaScript"&gt;
<!--
function MM_findObj(n, d) { //v4.01
   var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.leng
th) {
     d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
   if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
   for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].docum
ent);
   if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_validateForm() { //v4.0
   var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
   for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
     if (val) { nm=val.name; if ((val=val.value)!="") {
       if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
         if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-ma
il address.\n';
       } else if (test!='R') { num = parseFloat(val);
         if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
         if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
           min=test.substring(8,p); max=test.substring(p+1);
           if (num<min || max<num) errors+='- '+nm+' must contain a number be
tween '+min+' and '+max+'.\n';
     } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n
'; }
   } if (errors) alert('The following error(s) occurred:\n'+errors);
   document.MM_returnValue = (errors == '');
}
//-->
&lt;/script&gt;
</head>

<body>
<form name="form1" id="form1" method="get" action="validation.asp">
   <p>Last Name:
     <input name="lastname" type="text" id="lastname" onblur="MM_validateForm
('lastname','','R');return document.MM_returnValue" maxlength="30" />
</p>
   <p>First Name:
     <input name="firstname" type="text" id="firstname" onblur="MM_validateFo
rm('firstname','','R');return document.MM_returnValue" maxlength="30" />
</p>
   <p>Street:
     <input name="street" type="text" id="street" maxlength="30" />
</p>
   <p>City:
     <input name="city" type="text" id="city" maxlength="30" />
</p>
   <p>State:
     <select name="state" size="1" id="state">
       <option value="Pennsylvania">PA</option>
       <option value="West Virginia">WV</option>
       <option value="Ohio">OH</option>
     </select>
</p>
   <p>Zip Code:
     <input name="zipcode" type="text" id="zipcode" maxlength="5" />
</p>
   <p>Email:
     <input name="email" type="text" id="email" onblur="MM_validateForm('last
name','','NisEmail','email','','NisEmail');return document.MM_returnValue" m
axlength="30" />
</p>
   <p>Number of cars owned:
     <input name="carnumber" type="text" id="carnumber" onblur="MM_validateFo
rm('lastname','','NinRange1:4','carnumber','','NinRange1:4');return document
.MM_returnValue" maxlength="5" />
</p>
   <p>Type of movies preferred:
     horror
     <input name="horror" type="checkbox" id="horror" value="horror" />
   comedy
   <input name="comedy" type="checkbox" id="comedy" value="comedy" />
  action
  <input name="action" type="checkbox" id="action" value="action" />
  drama
  <input type="checkbox" name="checkbox" value="drama" />
</p>
   <p>Comments:
     <textarea name="comments" cols="50" rows="5" id="comments"></textarea>
   </p>
   <p>
     <input name="Submit" type="submit" onclick="MM_validateForm('lastname','
','R','firstname','','R','email','','NisEmail','carnumber','','NinRange1:4')
;return document.MM_returnValue" value="Submit" />
     <input name="reset" type="reset" id="reset" value="Reset" />
   </p>
   <p>   </p>
   <p>   </p>
</form>
<p> </p>
</body>
</html>