Maybe this will help:
The following code was a sample I found and it is pretty close to what I need to do but since there is no processing going on (i.e. emailing the data) I'm stuck as to how to adapt this code for my situation.
*********************************
<script language="JavaScript"><!--
var toggle = false;
function show(object) {
if (document.layers && document.layers[object])
document.layers[object].visibility = 'visible';
else if (document.all) {
document.all[object].style.visibility = 'visible';
document.all[object].style.zIndex = 100;
}
}
function hide(object) {
if (document.layers && document.layers[object])
document.layers[object].visibility = 'hidden';
else if (document.all)
document.all[object].style.visibility = 'hidden';
}
//--></script>
<form>
<input type="button" onClick="if (toggle = !toggle) hide('myId');else show('myId')" value="Show/Hide">
</form>
<div id="myId" style="position: absolute; visibility: visible;">Test</div>
***********************************************
This is my helpnow.htm that contains the form layer and response layer.
***********************************************
<html>
<!-- InstanceBegin template="/Templates/child page.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body id="theBody" onload="parent.showPage('contentLayer')">
<!-- InstanceBeginEditable name="new content goes here" -->
<!--remove this line after finish edit-->
<div id="title">request support form</div>
<div id="main" class="blur bdr"></div>
<div id="maintext">
<p>Simply fill out the form below with your name, e-mail address, telephone
number and a brief description of your problem and click "Request Support".
Then leave the rest up to us! Within minutes we will call you at the number
you've provided and send you an invitation via e-mail to an online session.
Over the telephone, a trained technician will listen to your problem and guide
you - start to finish - through the solution. </p>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<caption>
</caption>
</table>
<form name="form1" onsubmit="return doSubmit()" method="post" action="request.asp">
<table border="0" align="center" cellpadding="0" cellspacing="1">
<tr>
<td><input name="clientFName" type="text" id="clientFName" onFocus="this.select(value='')" value="First Name" size="20"></td>
<td><input name="clientLName" type="text" id="clientLName" onFocus="this.select(value='')" value="Last Name" size="20"></td>
</tr>
<tr>
<td><input name="email" type="text" id="email" onFocus="this.select(value='')" value="eMail Address" size="20"></td>
<td><input name="phone" type="text" id="phone" onFocus="this.select(value='')" value="Phone Number" size="20"></td>
</tr>
<tr>
<td colspan="2"><textarea name="problem" cols="36" rows="3" id="problem" onFocus="this.select(value='')">Your Question</textarea>
</td>
</tr>
<tr>
<td colspan="2"><input name="Submit" type="submit" onClick="MM_validateForm('clientFName','','R','clientLName','','R','email','','RisEmail','phone','','RisNum','problem','','R');MM_showHideLayers('pendrequest','','show');MM_showHideLayers('maintext','','hide');return document.MM_returnValue" value="Request Support!">
<input type="reset" name="Submit2" value="RESET"> </tr>
</table>
</form>
</div>
<div id="extent2" class="extent">
<p class="bold"> Dear , </p>
<p>This is an automatic reply from OnCall4U to let you know that we have received
your support request. As soon as our support professionals have had a chance
to process your request or investigate your inquiry, we will respond to you
using the following information. We will be using the following information
to contact you:</p>
<p class="bold">Your Name: <br />
E-mail: <br />
Your Phone: </p>
<p>If any of this information is incorrect, please go back to the form and alter
it. We thank you for taking the time to help us give you better service.</p>
<p>Yours Sincerely,</p>
<p>Wayne Jordan<br />
Technical Director</p>
</div>
<!-- InstanceEndEditable -->
</body>
<!-- InstanceEnd -->
</html>
*************************************************
This is my current asp page that processes the form. I need to somehow do what the example code above does but also do this below:
************************************
<%
strFName = Request.Form("clientFName"

strLName = Request.Form("clientLName"

strEmail = Request.Form("email"

strPhone = Request.Form("phone"

strProblem = Request.Form("problem"
Dim objCDOMail, strBody, strTechBody
strBody = strFName & ", thank you for reqesting an OnCall4U support session." & vbCrLf & vbCrLf
strBody = strBody & "You have given the following phone number: " & strPhone & "." & vbCrLf
strBody = strBody & "You have specified the following problem: " & vbCrLf & vbCrLf
strBody = strBody & strProblem & vbCrLf & vbCrLf
strBody = strBody & "Please wait for our technician to call you." & vbCrLf & vbCrLf
strBody = strBody & "Thank You, " & vbCrLf & "OnCall4U" & vbCrLf & "(888) 589-2655" & vbCrLf
strTechBody = vbCrLf & "Name: " & strFName & " " & strLName & vbCrLf
strTechBody = strTechBody & "eMail: " & strEmail & vbCrLf & vbCrLf & "Date: " & Date & vbCrLf
strTechBody = strTechBody & "Phone: " & strPhone & vbCrLf
strTechBody = strTechBody & "Problem: " & strProblem & vbCrLf
Set objCDOMail = Server.CreateObject("CDONTS.NewMail"

objCDOMail.From = "support@megabytescomputers.com"
objCDOMail.To = strEmail
objCDOMail.Subject = "OnCall4U Request Support"
objCDOMail.Body = strBody
objCDOMail.Send
Set objCDOMail = Nothing
Set objCDOMail = Server.CreateObject("CDONTS.NewMail"

objCDOMail.From = "support@megabytescomputers.com"
objCDOMail.To = "support@megabytescomputers.com"
objCDOMail.Subject = "OnCall4U Request Support"
objCDOMail.Body = strTechBody
objCDOMail.Send
Set objCDOMail = Nothing
Set objCDOMail = Server.CreateObject("CDONTS.NewMail"

objCDOMail.From = "support@megabytescomputers.com"
objCDOMail.To = "9043332142@voicestream.net"
objCDOMail.Subject = "OnCall4U Request Support"
objCDOMail.Body = strTechBody
objCDOMail.Send
Set objCDOMail = Nothing
Response.Redirect "helpnow.htm"
*****This line above I know is wrong *********
%>
I hope this helps. Wayne Jordan "The Computer Guru"
Technical Director
Megabytes Computers & Networking, Inc.
Solve Your Computer Problem in Five Minutes at:
Email - mailto:wayne@megabytescomputers.com
Toll Free - (888) 589-2655
Voice - (904) 880-6366
Fax - (904) 880-1560
Cell - (904) 333-2142
"Teamwork is the fuel