Using JavaScript to direct form data

  • MeineChrista
  • Beginner
  • Beginner
  • User avatar
  • Posts: 56
  • Loc: Virginia Beach

Post 3+ Months Ago

My coding skills are novice so forgive me if this seems like a simple request. I have recently found myself in charge of my company's web site so I have a lot of catching up to do. :lol:

I would like to send form data to certain email addresses contingent on which check box the user selects. For instance, if they check check box 'A' then a copy of the form data will go to the PTG Sales group. And, if check box 'D' is checked then a copy will go to the Training Division. I was able to find some simple code for <select></select> options fields, but I need code for check boxes. Please see <select> code below:


Code: [ Select ]
<script language="javascript">
<!--
function setStateField()
{
  var stateField = document.theForm.state;
  var selected = document.theForm.mailto.selectedIndex;
  stateField.value = document.theForm.mailto[selected].innerHTML;
}
// -->
</script>
</head>
<body>
<form name="theForm" action="" method="">

<select name="mailto" onchange="setStateField()">

<option value="email1@some.com">state1</option>

<option value="email2@some.com">state2</option>
<option value="email2@some.com">state3</option>
<option value="email2@some.com">state4</option>
<option value="email2@some.com">state5</option>

<option value="email3@some.com">state6</option>
<option value="email3@some.com">state7</option>
<option value="email3@some.com">state8</option>
<option value="email3@some.com">state9</option>

<option value="email4@some.com">state10</option>
<option value="email4@some.com">state11</option>
<option value="email4@some.com">state12</option>
<option value="email4@some.com">state13</option>
<option value="email4@some.com">state14</option>
<option value="email4@some.com">state15</option>
<option value="email4@some.com">state16</option>
<option value="email4@some.com">state17</option>

<option value="email5@some.com">state18</option>
</select>
<input type="hidden" name="state" value="state1">
<input type="submit">
</form>
  1. <script language="javascript">
  2. <!--
  3. function setStateField()
  4. {
  5.   var stateField = document.theForm.state;
  6.   var selected = document.theForm.mailto.selectedIndex;
  7.   stateField.value = document.theForm.mailto[selected].innerHTML;
  8. }
  9. // -->
  10. </script>
  11. </head>
  12. <body>
  13. <form name="theForm" action="" method="">
  14. <select name="mailto" onchange="setStateField()">
  15. <option value="email1@some.com">state1</option>
  16. <option value="email2@some.com">state2</option>
  17. <option value="email2@some.com">state3</option>
  18. <option value="email2@some.com">state4</option>
  19. <option value="email2@some.com">state5</option>
  20. <option value="email3@some.com">state6</option>
  21. <option value="email3@some.com">state7</option>
  22. <option value="email3@some.com">state8</option>
  23. <option value="email3@some.com">state9</option>
  24. <option value="email4@some.com">state10</option>
  25. <option value="email4@some.com">state11</option>
  26. <option value="email4@some.com">state12</option>
  27. <option value="email4@some.com">state13</option>
  28. <option value="email4@some.com">state14</option>
  29. <option value="email4@some.com">state15</option>
  30. <option value="email4@some.com">state16</option>
  31. <option value="email4@some.com">state17</option>
  32. <option value="email5@some.com">state18</option>
  33. </select>
  34. <input type="hidden" name="state" value="state1">
  35. <input type="submit">
  36. </form>
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • rtm223
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 1855
  • Loc: Uk

Post 3+ Months Ago

Hey! Welcome to Ozzu.

Don't worry about asking simple questions, there are plenty of newbies here, and everyone is new to something :)

Couple of quick pointers - wrap your code in [code] tags else the mods don't like it and they moan! Also make sure your sig is not too big.

I'm not entirely sure how to solve your problem, I'm not too hot on forms in general (they're on my to-do list!). I'm sure the editing of your script won't be too hard. I'll have a look at it when I get home tonight if no-one has helped you before then.
:)
  • digitalMedia
  • a.k.a. dM
  • Genius
  • User avatar
  • Posts: 5149
  • Loc: SC-USA

Post 3+ Months Ago

MeineChrista: As rtm223 said, welcome to Ozzu and please use the tags to set your code snippets apart from the conversational parts of your posts.

I went ahead and did this for you in your post above. ;)

Also, the rules stipulate that signatures are a maximum of 3 lines. If you would be so kind as to fix yours up, I would appreciate it.

Thanks.
  • MeineChrista
  • Beginner
  • Beginner
  • User avatar
  • Posts: 56
  • Loc: Virginia Beach

Post 3+ Months Ago

Thank you, rtm223 and Digital Media. I fixed the sig :oops:
  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13502
  • Loc: Florida

Post 3+ Months Ago

It's kinda hard to give a complete answer without seeing the script that will process the form input.

EDIT: Revised Below
Hope this helps :D
  • MeineChrista
  • Beginner
  • Beginner
  • User avatar
  • Posts: 56
  • Loc: Virginia Beach

Post 3+ Months Ago

Thanks, JoeBert. I'll give it a try.
  • MeineChrista
  • Beginner
  • Beginner
  • User avatar
  • Posts: 56
  • Loc: Virginia Beach

Post 3+ Months Ago

joebert wrote:
It's kinda hard to give a complete answer without seeing the script that will process the form input.

. . . Hope this helps :D


joebert, I tried the code for creating the email string, but I couldn't quite figure out how to make it work with the form. It's a really long form with over 90 fields. Basically, I want to have a primary mailto: address but if any of the "chkTour" check boxes are checked then a cc: mail list is appended to the mailto: address.

Please tell me what code you need to see and I will post it for you. Thanks. I appreciate your help. :oops:
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

Welcome to OZZU MeineChrista. I'm going to move this to our programming board. Just click your link that says "moved" to find it.
  • Managedlinks
  • Proficient
  • Proficient
  • Managedlinks
  • Posts: 294

Post 3+ Months Ago

Hi and welcome

from what I can gather you are hoping to send the email direct from the form.

in other words the form is not going to be processed by a script at your server. am I right?

if so you need to create an onclick event for the submit button
during that event you need to change the forms action to the correct email address to send it to

then you need to submit it

Please note this will only work IF the users browser is set up correctly. FORGET it working on AOL browsers they do not process email forms, the email gets sent but its empty.
ALSO depending on the browser/email client combination the data will be wrapped up in an attachment such as "att" which e-mail programs tend not to understand and so the user has to work out how to save and then read the information. which is often url encoded :)

I hope I have scared you enough it is not really the best solution

the best solution is to use a server side script to solve all the problems AND prevent spambots from getting access to the email addresses.

Tell me which way you would like to go and I will rough out a script for you

Sorry for the long message, but I think its worth understanding the pitfalls.
  • MeineChrista
  • Beginner
  • Beginner
  • User avatar
  • Posts: 56
  • Loc: Virginia Beach

Post 3+ Months Ago

Managedlinks wrote:
Hi and welcome


Thank you, Managedlinks :o

You are absolutely right. The form will be used by internal sources meaning our sales reps will be filling it out. So, I don't have to worry about browser compatibility because it will be strictly within our network and firewall.

However, I would like to use a server side script not only for the routing purposes but also for the formatting of the email message.

The form itself utilizes client-side javascript for validation, but I've been fooling around with a vbscript/asp file for the form action. I'm not very fluent with asp or vbscript so I'm struggling. Also, my javascript (limited as it is) is more fluent than vbscript. So, when I'm working with vbscript I keep getting confused, because I know how to say it in javascript but I have to stop and research the vb equivalent. Any help you can give will be greatly appreciated.


Thank you :wink:
  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13502
  • Loc: Florida

Post 3+ Months Ago

Somewhere in the form add this,
Code: [ Select ]
<input type="text" id="cc" name="cc" size="1">

That will be the carrier for the CC list that your ASP page will request the CC list from.

Also in the form inside a DIV tag, TD or anyhting to contain it for formatting add this,
Code: [ Select ]
<script language="javascript">
//----- Loop through address array printing a checkbox and determine if checkbox's label is a name or address
//----- NOTE: The buildMail() function will ALWAYS use the address array, MODE is just for looks
for(i=0; i<adr.length; i++){
  if(mode==0){vis=nam[i];}
  if(mode==1){vis=adr[i];}
  document.write("<input type='checkbox' id='chkTour'>&nbsp;" + vis + "<br />");
}
</script>
  1. <script language="javascript">
  2. //----- Loop through address array printing a checkbox and determine if checkbox's label is a name or address
  3. //----- NOTE: The buildMail() function will ALWAYS use the address array, MODE is just for looks
  4. for(i=0; i<adr.length; i++){
  5.   if(mode==0){vis=nam[i];}
  6.   if(mode==1){vis=adr[i];}
  7.   document.write("<input type='checkbox' id='chkTour'>&nbsp;" + vis + "<br />");
  8. }
  9. </script>

That will build a list of checkboxes with either an address, or a nickname as a label.

Since you told us your allready using client side validation i'm guessing your FORM declaration looks similar to this,
Code: [ Select ]
<form name="multi" action="mail.asp" method="post" onsubmit="validate(); return permission">


If this is the case, right before your validation function returns true for the "PERMISSION" variable add this,
Code: [ Select ]
buildMail();

The validation function should look somthing like this now,
Code: [ Select ]
     .....everything validated
     }buildMail();
      permission = true;
      return permission;
}
  1.      .....everything validated
  2.      }buildMail();
  3.       permission = true;
  4.       return permission;
  5. }


Now in your head tags add this,
Code: [ Select ]
<script language="javascript">
//----- list mode, 0 to print names at client side | 1 to print address
//----- 1 allows you to omit the name array (nam)
var mode = 0;

//----- Address array
adr = new Array();
adr[0] = "address1@blah.com";
adr[1] = "address2@blah.com";
adr[2] = "address3@blah.com";
adr[3] = "address4@blah.com";

//----- Name array
nam = new Array();
nam[0] = "name1";
nam[1] = "name2";
nam[2] = "name3";
nam[3] = "name4";

//----- function to build address string
function buildMail() {
  mailStr = "";
//----- Loop through checkboxes adding its corosponding address to the CC string(semicolan delimited) if it's checked
  for (i=0; i<adr.length; i++){
//----- NOTE: Replace multi with the name of your form
   if(document.multi.chkTour[i].checked){
     if(mailStr != ""){mailStr += ";";}
     mailStr += adr[i];
   }
  }
//----- Set the value of CC textbox to CC String
//----- NOTE: Replace multi with the name of your form
  document.multi.cc.value = mailStr;
}
</script>
  1. <script language="javascript">
  2. //----- list mode, 0 to print names at client side | 1 to print address
  3. //----- 1 allows you to omit the name array (nam)
  4. var mode = 0;
  5. //----- Address array
  6. adr = new Array();
  7. adr[0] = "address1@blah.com";
  8. adr[1] = "address2@blah.com";
  9. adr[2] = "address3@blah.com";
  10. adr[3] = "address4@blah.com";
  11. //----- Name array
  12. nam = new Array();
  13. nam[0] = "name1";
  14. nam[1] = "name2";
  15. nam[2] = "name3";
  16. nam[3] = "name4";
  17. //----- function to build address string
  18. function buildMail() {
  19.   mailStr = "";
  20. //----- Loop through checkboxes adding its corosponding address to the CC string(semicolan delimited) if it's checked
  21.   for (i=0; i<adr.length; i++){
  22. //----- NOTE: Replace multi with the name of your form
  23.    if(document.multi.chkTour[i].checked){
  24.      if(mailStr != ""){mailStr += ";";}
  25.      mailStr += adr[i];
  26.    }
  27.   }
  28. //----- Set the value of CC textbox to CC String
  29. //----- NOTE: Replace multi with the name of your form
  30.   document.multi.cc.value = mailStr;
  31. }
  32. </script>

Though it's commented I want to make sure you see theese two lines,
Code: [ Select ]
//----- NOTE: Replace multi with the name of your form
   if(document.multi.chkTour[i].checked){
  1. //----- NOTE: Replace multi with the name of your form
  2.    if(document.multi.chkTour[i].checked){

Code: [ Select ]
//----- NOTE: Replace multi with the name of your form
  document.multi.cc.value = mailStr;
  1. //----- NOTE: Replace multi with the name of your form
  2.   document.multi.cc.value = mailStr;

Now on to the ASP page that you have processing this.
Somewhere near the top of the page add this,
Code: [ Select ]
Dim cc
cc = "cc=" & Request.Form("cc")
  1. Dim cc
  2. cc = "cc=" & Request.Form("cc")

You now have the semicolan delimited list of CC addresses stored in VARIABLE "CC" which you can request in your ASP CDONT script.

Since this form is being used on an intranet and you mentioned ASP I assumed everyone is using IE, I tested all of this in IE6(win2kServer) with no problems.
  • Managedlinks
  • Proficient
  • Proficient
  • Managedlinks
  • Posts: 294

Post 3+ Months Ago

Hi MC

I tried to respond last night but something went wrong and I could not connect to ozzu. consequently my response went to the bit bin :(

basically what I was saying was that I may have been a bit too harsh given you are in a controlled environment. my comments were really meant for the world wide web.

I am not exactly sure what joebert is achieving with the above as it seems to be simply adding a CC line to the form output. as that was not part of the original specification I think JB got off track a little bit.

If you are in an intranet AND all users are using IE then a javascript version should be fine

The trick is not to send the form itself but to use the form to collect the data and then use another form to send it.

that way you can format the email and send it using the mailto syntax

I will come up with something today and post it for you

Please note there is still provisos. the main one being is it is up to the sender to actually send the email. ALL the program does is put it in their outbox. it does not automatically send it. Unless their email client is already running and set to automatically send and receive.

A server side version is still the most robust. but as you say you are not proficient in asp and neither am I the best choice for us is javascript.
  • MeineChrista
  • Beginner
  • Beginner
  • User avatar
  • Posts: 56
  • Loc: Virginia Beach

Post 3+ Months Ago

Managedlinks wrote:
Hi MC

. . . If you are in an intranet AND all users are using IE then a javascript version should be fine

The trick is not to send the form itself but to use the form to collect the data and then use another form to send it.

that way you can format the email and send it using the mailto syntax

I will come up with something today and post it for you . . .



Thanks, ML :oops: I appreciate your help.
  • MeineChrista
  • Beginner
  • Beginner
  • User avatar
  • Posts: 56
  • Loc: Virginia Beach

Post 3+ Months Ago

joebert wrote:
. . .
Code: [ Select ]
<script language="javascript">
//----- Loop through address array printing a checkbox and determine if checkbox's label is a name or address
//----- NOTE: The buildMail() function will ALWAYS use the address array, MODE is just for looks
for(i=0; i<adr.length; i++){
  if(mode==0){vis=nam[i];}
  if(mode==1){vis=adr[i];}
  document.write("<input type='checkbox' id='chkTour'>&nbsp;" + vis + "<br />");
}
</script>
  1. <script language="javascript">
  2. //----- Loop through address array printing a checkbox and determine if checkbox's label is a name or address
  3. //----- NOTE: The buildMail() function will ALWAYS use the address array, MODE is just for looks
  4. for(i=0; i<adr.length; i++){
  5.   if(mode==0){vis=nam[i];}
  6.   if(mode==1){vis=adr[i];}
  7.   document.write("<input type='checkbox' id='chkTour'>&nbsp;" + vis + "<br />");
  8. }
  9. </script>

That will build a list of checkboxes with either an address, or a nickname as a label.
. . .


Thanks, Joebert. I'll try this, however the form is already created. I don't need to dynamically create the checkboxes or their labels. I do, however, need a way to append manager's email addresses to the mailto if their department is checked by the user for a scheduled tour. I greatly appreciate your help :oops:
  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13502
  • Loc: Florida

Post 3+ Months Ago

Ok slight modification,

First, I made the script to use a comma to seporate CC addresses instead of what really needs to be a semicolan. This can be fixed by doing a Find and Replace in notepad with theese lines, (I've since fixed this in my original code)
Look For
Code: [ Select ]
if(mailStr != ""){mailStr += ",";}

Replace With
Code: [ Select ]
if(mailStr != ""){mailStr += ";";}


Now, though I think you said this is allready the case make sure every checkbox for CC addresses in your form has an id="chkTour" attribute like this,
Code: [ Select ]
<input type="checkbox" id="chktour"> Label <br />


This will make all of theese checkboxes accessable through an array[] which in turn makes them comparable to an array of addresses.

If your form is static then you need to add the array containing the addresses in the order they appear on the form to the top of the page like so.
Code: [ Select ]
//----- Address array
adr = new Array();
adr[0] = "address1@blah.com";
adr[1] = "address2@blah.com";
adr[2] = "address3@blah.com";
adr[3] = "address4@blah.com";
  1. //----- Address array
  2. adr = new Array();
  3. adr[0] = "address1@blah.com";
  4. adr[1] = "address2@blah.com";
  5. adr[2] = "address3@blah.com";
  6. adr[3] = "address4@blah.com";

If you build this form dynamically with a server-side script and a database then it's a matter of having that script write this array while it builds the form.
This is what the script will append the the CC list if checkbox i is checked when the form is submited.
Example,
Quote:
for(i=0; i<adr.length; i++){
if(document.formName.chkTour[i].checked){
if(mailStr != ""){mailStr += ";";} // keeps semicolan from going where it's not needed.
mailStr += adr[i];
}
}
document.formName.cc.value = mailStr; // sets the value of the textbox named cc we added earlier to the CC string this function creates.
}


This is telling the browser (instead of having the server do it) that untill it has reached the end of the adr[] array to see if the checkbox with the same array index of that address is checked, if it is checked then it will add a semicolan to the CC string then add the address of that index to the CC string then move the next index. Once the end of the adr[] array has been reached this temporary CC string will be set as the value of the textbox with id="cc" name="cc" in your form and then the form is posted to the ASP page that your forms action attribute is set to.

Now for the ASP page that will process this form,
Quote:
<%
'Declare variables
Dim objCMail 'Holds the CDONTS NewMail Object

'Create the e-mail server object
Set objCMail = Server.CreateObject("CDONTS.NewMail")

'Who the e-mail is from
objCMail.From = Request.Form("name of from field")

'Main recipient
objCMail.To = "managers address@Domain.com"

'Who the carbon copies are sent to
'This is where the CC textbox comes into play.
objCMail.Cc = Request.Form("cc")

'Who the blind copies are sent to
objCMail.Bcc = "myFriend1@thereDomain.com;myFriend2@anotherDomain.com"

'Set the subject of the e-mail
objCMail.Subject = "Enquiry sent from my web site"

'Set the e-mail body format (0=HTML 1=Text)
objCMail.BodyFormat = 0

'Set the mail format (0=MIME 1=Text)
objCMail.MailFormat = 0

'Set the main body of the e-mail
objCMail.Body = Request.Form("name of message/body field")

'Importance of the e-mail (0=Low, 1=Normal, 2=High)
objCMail.Importance = 1

'Send the e-mail
objCMail.Send

'Close the server object
Set objCMail = Nothing

'.........Anything Else this page needs to do...........
%>


If you have any problems post the source code of your form page and i'll go ahead and modify it.
  • Managedlinks
  • Proficient
  • Proficient
  • Managedlinks
  • Posts: 294

Post 3+ Months Ago

Hi MC

I see joebert has got in before me but below is my example

try both methods and choose the one that best suits

copy mine into an empty text file and save it as a html file then open it in your browser

good luck :)

Code: [ Select ]
<html>
<head>
<title>Example mailto form</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<script language="javascript">
<!--
function setStateField()
{
  var stateField = document.theForm.state;
  var selected = document.theForm.mailto.selectedIndex;
  stateField.value = document.theForm.mailto[selected].innerHTML;
}

// this function compiles and submits the form
function mail(tform)
{

    if (!tform)
        return;
    
    if (tform.mailto.selectedIndex == -1)
    {
        alert ('invalid e-mail address selection, please select a recipient for this e-mail')
        return;
    }
        
    var postit = document.getElementById("postit");
    
    if (!postit)
        return;
    // create the recipient    - seperate multiple recipients with a semicolon ';'
    var mailto = 'mailto:' + tform.mailto.options[tform.mailto.selectedIndex].value + '?';
    
    // add cc and bcc if required
    // var cc = '&cc=';
    var cc = ''; // not used
    // var bcc = '&bcc=';
    var bcc= ''; // not used
    
    // add other elements
    var subject = 'subject=' + tform.subject.value;
    
    var body = '&body=';
    
    // here you would iterate through all the fields you want to include
    // appending them as you go
    var message = tform.message.value;
    
    // to prevent errors its best to "escape" the message body
    body += escape(message);
    
    // finally send it to the users e-mail program
    var action = mailto + cc + bcc + subject + body;
    postit.action = action;
    postit.submit();
//     alert('This email has been placed in your outbox. Please don\'t forget to send it');
}

// -->

</script>
</head>
<body>

<form ID="postit" action="">
<!-- no member elements -->
<!-- this is the form that posts the data it could be created dynamically -->
</form>

<form name="theForm" action="" method="" onsubmit="mail(this);return false;">
 <!-- this form collects the data but cannot submit it "return false;" disables submission -->
 <p>Recipient:<br>
  <select name="mailto" onchange="setStateField()">
   <option value="email1@some.com">state1</option>
   <option value="email2@some.com">state2</option>
  </select>
  <input type="hidden" name="state" value="state1">
 </p>
 <p>Subject:<br>
  <input type="text" name="subject" value="subject">
 </p>
 <p>Message:<br>
  <textarea name="message" cols="40" rows="6">This is a test message</textarea>
  <input type="submit">
 </p>
</form>


</body>
</html>
  1. <html>
  2. <head>
  3. <title>Example mailto form</title>
  4. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  5. <script language="javascript">
  6. <!--
  7. function setStateField()
  8. {
  9.   var stateField = document.theForm.state;
  10.   var selected = document.theForm.mailto.selectedIndex;
  11.   stateField.value = document.theForm.mailto[selected].innerHTML;
  12. }
  13. // this function compiles and submits the form
  14. function mail(tform)
  15. {
  16.     if (!tform)
  17.         return;
  18.     
  19.     if (tform.mailto.selectedIndex == -1)
  20.     {
  21.         alert ('invalid e-mail address selection, please select a recipient for this e-mail')
  22.         return;
  23.     }
  24.         
  25.     var postit = document.getElementById("postit");
  26.     
  27.     if (!postit)
  28.         return;
  29.     // create the recipient    - seperate multiple recipients with a semicolon ';'
  30.     var mailto = 'mailto:' + tform.mailto.options[tform.mailto.selectedIndex].value + '?';
  31.     
  32.     // add cc and bcc if required
  33.     // var cc = '&cc=';
  34.     var cc = ''; // not used
  35.     // var bcc = '&bcc=';
  36.     var bcc= ''; // not used
  37.     
  38.     // add other elements
  39.     var subject = 'subject=' + tform.subject.value;
  40.     
  41.     var body = '&body=';
  42.     
  43.     // here you would iterate through all the fields you want to include
  44.     // appending them as you go
  45.     var message = tform.message.value;
  46.     
  47.     // to prevent errors its best to "escape" the message body
  48.     body += escape(message);
  49.     
  50.     // finally send it to the users e-mail program
  51.     var action = mailto + cc + bcc + subject + body;
  52.     postit.action = action;
  53.     postit.submit();
  54. //     alert('This email has been placed in your outbox. Please don\'t forget to send it');
  55. }
  56. // -->
  57. </script>
  58. </head>
  59. <body>
  60. <form ID="postit" action="">
  61. <!-- no member elements -->
  62. <!-- this is the form that posts the data it could be created dynamically -->
  63. </form>
  64. <form name="theForm" action="" method="" onsubmit="mail(this);return false;">
  65.  <!-- this form collects the data but cannot submit it "return false;" disables submission -->
  66.  <p>Recipient:<br>
  67.   <select name="mailto" onchange="setStateField()">
  68.    <option value="email1@some.com">state1</option>
  69.    <option value="email2@some.com">state2</option>
  70.   </select>
  71.   <input type="hidden" name="state" value="state1">
  72.  </p>
  73.  <p>Subject:<br>
  74.   <input type="text" name="subject" value="subject">
  75.  </p>
  76.  <p>Message:<br>
  77.   <textarea name="message" cols="40" rows="6">This is a test message</textarea>
  78.   <input type="submit">
  79.  </p>
  80. </form>
  81. </body>
  82. </html>
  • MeineChrista
  • Beginner
  • Beginner
  • User avatar
  • Posts: 56
  • Loc: Virginia Beach

Post 3+ Months Ago

joebert wrote:
. . .
If you have any problems post the source code of your form page and i'll go ahead and modify it.


Hi, JoeBert.

Well, you asked for it! Hope I don't blow you away. :shock: It's a very long form and my source code is probably a bit messy. I haven't been able to test your code because when I go to submit the form I get a download option box (asking to open or download the asp file in the form action).

There may be some bad code on my form page. I will also post the asp page in case the problem is on there. Thank you, JB :oops:

Code: [ Select ]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>ESI Corporate Cape Questionnaire</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.powderBlue { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: xx-small; font-style: normal; line-height: normal; font-weight: bold; color: #354453; text-decoration: none}
.body2 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: xx-small; font-style: normal; line-height: normal; font-weight: normal; color: #2d1654; text-decoration: none }
.style1 {
    color: #FF0000;
    font-weight: bold;
}
-->
</style>
<script language="JavaScript1.2" type="text/JavaScript">
<!-- hide from old browsers
//address array
    address = new Array();
    address[0] = "MeineChrista@peoplepc.com";
    address[2] = "MineChrista@hotmail.com";
    address[3] = "MeineChrista@peoplepc.com";
    address[4] = "MineChrista@hotmail.com";
    address[5] = "MeineChrista@peoplepc.com";
    address[6] = "MineChrista@hotmail.com";
    address[7] = "MeineChrista@peoplepc.com";
    address[8] = "MineChrista@hotmail.com";
    address[9] = "MeineChrista@peoplepc.com";
    address[10] = "MineChrista@hotmail.com";
    address[11] = "MeineChrista@peoplepc.com";
    address[12] = "MineChrista@hotmail.com";
    address[13] = "MeineChrista@peoplepc.com";
    address[14] = "MineChrista@hotmail.com";
    address[15] = "MeineChrista@peoplepc.com";
    address[16] = "MineChrista@hotmail.com";
    address[17] = "MeineChrista@peoplepc.com";
    address[18] = "MineChrista@hotmail.com";

//function to build address string
function buildMail(){
    mailStr = "";
    //loop thru checkboxes adding its corrosponding address to the cc string if checked
    for (i=0; i<address.length; i++){
        if(document.corpCape.chkTour[i].checked){
            if(mailStr != ""){mailStr += ";";}
            mailStr += address[i];
        }//end if
    }//end for
    //set the value of cc hidden to cc string
    document.corpCape.cc.value = mailStr;
}//end function buildMail
//Stop hiding from old browsers -->
</script>

<script language="JavaScript1.2" type="text/JavaScript">
<!-- hide from old browsers
function verifyFields(){
if(document.corpCape.txtDate.value.length < 1){
alert("Please enter date of request!");
document.corpCape.txtDate.focus();
return false;
}//end 'date of request' validation if statement

// =======================================================

if(document.corpCape.txtDivision.value.length < 1){
alert("Please enter your Division!");
document.corpCape.txtDivision.focus();
return false;
}//end 'division' validation if statement
// =======================================================

if(document.corpCape.txtEsiRep.value.length < 1){
alert("Please enter ESI Rep!");
document.corpCape.txtEsiRep.focus();
return false;
}//end 'ESI rep' validation if statement
// =======================================================

if(document.corpCape.txtCustomerName.value.length < 1){
alert("Please enter Customer's Name!");
document.corpCape.txtCustomerName.focus();
return false;
}//end 'customer name' validation if statement
// =======================================================

//verify that at least one check box has been selected
var check1="";

if(document.corpCape.rdoExistingCust.checked){
    for(var intCount2=0; intCount2<document.corpCape.chkDivisions.length; intCount2++){
        if(document.corpCape.chkDivisions[intCount2].checked){
                check1=document.corpCape.chkDivisions[intCount2].value;
                break;
            }//end if()
        }//end for loop

    if(check1==""){
        alert("Which division is existing customer doing business with?");
        return false;
    }
}//end 'which division doing business w/' validation if statement
// =======================================================
if(document.corpCape.rdoExistingCust.checked){
    if(document.corpCape.taSalesHistory.value.length < 1){
        alert("Please list sales history!");
        document.corpCape.taSalesHistory.focus();
    return false;
    }//end if
}//end 'sales history' validation if statement
// =======================================================

if(document.corpCape.txtGuestName1.value.length < 1){
alert("Please enter guest name!");
document.corpCape.txtGuestName1.focus();
return false;
}//end 'guest name' validation if statement
// =======================================================

if(document.corpCape.txtGuestTitle1.value.length < 1){
alert("Please enter guest title!");
document.corpCape.txtGuestTitle1.focus();
return false;
}//end 'guest title' validation if statement
// =======================================================

if(document.corpCape.taEsiOnly.value.length < 1){
alert("Who will be attending ESI Only meeting?");
document.corpCape.taEsiOnly.focus();
return false;
}//end 'guest name' validation if statement
// =======================================================

//verify that at least one radio button has been selected
var radio2="";
for(var intCount3=0; intCount3<document.corpCape.rdoEsiOnly.length; intCount3++){
        if(document.corpCape.rdoEsiOnly[intCount3].checked){
                radio2=document.corpCape.rdoEsiOnly[intCount3].value;
                break;
            }//end if()
        }//end for loop
if(radio2==""){
        alert("Has the ESI ONLY meeting been sent out?");
        return false;
}//end 'ESI Only' validation if statement
// =======================================================

if(document.corpCape.taCapePurpose.value.length < 1){
alert("What is the purpose of this Corporate Cape?");
document.corpCape.taCapePurpose.focus();
return false;
}//end 'guest name' validation if statement
// =======================================================

if(document.corpCape.taKnownAcctMem.value.length < 1){
alert("Who do we already know in this account?");
document.corpCape.taKnownAcctMem.focus();
return false;
}//end 'known acct members' validation if statement
// =======================================================

if(document.corpCape.taCustomerIndustry.value.length < 1){
alert("What is customer's industry?");
document.corpCape.taCustomerIndustry.focus();
return false;
}//end 'known acct members' validation if statement
// =======================================================

//verify that at least one check box has been selected
var check2="";
for(var intCount4=0; intCount4<document.corpCape.chkTour.length; intCount4++){
        if(document.corpCape.chkTour[intCount4].checked){
                check2=document.corpCape.chkTour[intCount4].value;
                break;
            }//end if()
        }//end for loop
if(check2==""){
        alert("Please Select a Tour Stop!");
        return false;
}//end 'tour stop' validation if statement
// =======================================================
buildMail();
}//end function verifyFields()
//Stop hiding from old browsers -->
</script>


</head>

<body bgcolor="#FFFFFF" text="#000000" background="http://www.esi.net/marketing/corpCape/strip_02.gif">

<form action="cdonts.asp" method="post" name="corpCape" onsubmit="return verifyFields();">
<!-- outer table begins -->
<table background="http://www.esi.net/marketing/corpCape/tile_04.gif" align="center" width="600" border="1" cellspacing="5" cellpadding="5" bordercolor="2D1654">
<tr>
<td align="center" valign="middle"><img src="http://www.esi.net/marketing/corpCape/esi_cc.gif" border="0"></td>
</tr>
<tr>
<td>
        <!-- inner table 1 -->
    <table border="0" width="100%" cellspacing="5" cellpadding="5">
    <tr>
    <td class="body2" colspan="4"><span class="style1">*</span><span class="powderBlue">Required</span></td>
    </tr>
    <tr>
  <td class="powderBlue"><span class="style1">*</span>Date of Request:&nbsp;&nbsp;</td>
    <td><input type="text" name="txtDate" size="25" tabindex="1">&nbsp;&nbsp;&nbsp;&nbsp;</td>
  <td><span class="powderBlue"><span class="style1">*</span>Division:</span>&nbsp;&nbsp;<input type="text" name="txtDivision" size="10" tabindex="2"></td>
     <td>&nbsp;</td>
    </tr>
    <tr>
    <td class="powderBlue"><span class="style1">*</span>ESI Rep:&nbsp;&nbsp;</td>
    <td colspan="2"><input type="text" name="txtEsiRep" size="30" tabindex="3"></td>
     <td>&nbsp;</td>
    </tr>
     <tr>
    <td colspan="3"><hr></td><td>&nbsp;</td>
    </tr>
    <tr>
  <td class="powderBlue"><span class="style1">*</span>Customer Name:&nbsp;&nbsp;</td>
    <td colspan="2"><input type="text" name="txtCustomerName" size="50" tabindex="4"></td>
     <td>&nbsp;</td>
    </tr>
     <tr>
  <td class="powderBlue" colspan="3">Is this an existing ESI customer?
  <input type="radio" name="rdoExistingCust" value="yes" tabindex="5">&nbsp;yes</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
  <td class="powderBlue" colspan="3"><span class="style1">*</span>If yes, please indicate which divisions the customer is doing business with and give a brief description of sales history.</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
  <td colspan="3">
            <!-- inner table 2 -->
            <table width="75%" border="0" cellspacing="5" cellpadding="5">
            <tr >
      <td class="powderBlue"><input type="checkbox" name="chkDivisions" value="ISG" tabindex="7"><br>ISG</td>
      <td class="powderBlue"><input type="checkbox" name="chkDivisions" value="PTG" tabindex="8"><br>PTG</td>
      <td colspan="2" class="powderBlue"><input type="checkbox" name="chkDivisions" value="PSSG" tabindex="9"><br>PSSG</td>
            </tr>
            <tr>
      <td class="powderBlue"><input type="checkbox" name="chkDivisions" value="Service" tabindex="10"><br>Service</td>
      <td class="powderBlue"><input type="checkbox" name="chkDivisions" value="Training" tabindex="11"><br>Training</td>
      <td class="powderBlue"><input type="checkbox" name="chkDivisions" value="Printshop" tabindex="12"><br>Printshop</td>
            </tr>
            </table>
            <!-- end inner table 2 -->
    </td>
      <td>&nbsp;</td>
    </tr>
    <tr>
    <td class="powderBlue" colspan="3"><span class="style1">*</span>Description of sales history<br><br>
    <textarea rows="10" cols="85" name="taSalesHistory" class="powderBlue" tabindex="13"></textarea></td>
      <td>&nbsp;</td>
    </tr>
      <tr>
    <td colspan="3"><hr></td>
    <td>&nbsp;</td>
    </tr>
      <tr>
    <td class="powderBlue" colspan="2">How many employees does the customer have?&nbsp;&nbsp;</td>
    <td colspan="2">
    <select name="optNemployees" class="powderBlue" tabindex="14">
      <option value="under 50">under 50</option>
        <option value="50 - 200">50 - 200</option>
        <option value="200 - 400">200 - 400</option>
        <option value="400 - 800">400 - 800</option>
        <option value="over 800">800 - 1000</option>
        <option value="over 800">over 1000</option>
    </select>
  </td>
  </tr>
    <tr>
    <td class="powderBlue" colspan="2">What is customer's approximate annual revenue?&nbsp;&nbsp;</td>
    <td colspan="2">
    <select name="optRevenue" class="powderBlue" tabindex="15">
      <option value="under 50">under $250,000</option>
    <option value="50 - 200">$250,000 - $500,000</option>
        <option value="200 - 400">$500,000 - $1,000,000</option>
        <option value="400 - 800">$1,000,000 - $2,000,000</option>
        <option value="over 800">over $2,000,000</option> 
    </select>
  </td>
  </tr>
    <tr>
    <td class="powderBlue" colspan="2">What is customer's Fiscal Year End?&nbsp;&nbsp;</td>
    <td colspan="2"><input type="text" name="txtFYE" size="10" tabindex="16"></td>
     </tr>
     <tr>
    <td colspan="3"><hr></td>
    <td>&nbsp;</td>
    </tr>
     <tr>
    <td colspan="3" class="powderBlue">Please provide below the names of the following:</td>
  <td>&nbsp;</td>
    </tr> 
    <tr>
  <!-- inner table 3 -->
    <td colspan="3">
         <table width="75%" border="0" cellspacing="5" cellpadding="5">
         <tr>
        <td class="powderBlue"><input type="text" name="txtCEO" size="25" class="powderBlue" tabindex="17"><br>customer's CEO/President </td>
    <td class="powderBlue"><input type="text" name="txtCIO" size="25" class="powderBlue" tabindex="18"><br>customer's CIO</td>
    <td colspan="2" class="powderBlue"><input type="text" name="txtCTO" size="25" class="powderBlue" tabindex="19"><br>customer's CTO</td>
         </tr>
         <tr>
        <td class="powderBlue">
        <input type="text" name="txtCFO" size="25" class="powderBlue" tabindex="20"><br>customer's CFO</td>
    <td class="powderBlue"><input type="text" name="txtIT" size="25" class="powderBlue" tabindex="21"><br>customer's IT Director</td>
    <td class="powderBlue"><input type="text" name="txtPurchasing" size="25" class="powderBlue" tabindex="22"><br>Head of Purchasing</td>
        </tr>
        </table>
        <!-- end inner table 3 -->
    </td>
      <td>&nbsp;</td>
    </tr>
      <tr>
    <td colspan="3"><hr></td>
    <td>&nbsp;</td>
    </tr>
     <tr>
  <td class="powderBlue" colspan="3">Please provide below the customer's current Equipment/Services/Inventory dispositions:</td>
  <td>&nbsp;</td>
    </tr>
     <tr>
  <td colspan="3">
        <!-- inner table 4 -->
        <table width="100%" border="1" cellspacing="5" cellpadding="5" background="http://www.esi.net/marketing/corpCape/tile_05.gif">
         <tr>
        <td class="powderBlue" valign="top">
        <input type="checkbox" name="chkDisposition1" value="training" tabindex="23">&nbsp;&nbsp;Training
        <br><br>
        <span class="body2">
    <input type="text" name="txtTrainType" size="50" class="powderBlue" tabindex="24"><br>Training Type
        </span>
        <br><br>
        <span class="body2">
    <input type="text" name="txtTrainSupplier" size="50" class="powderBlue" tabindex="25"><br>Training Supplier</span>
        </td>
        <td class="powderBlue" valign="top" colspan="2"><input type="checkbox" name="chkDisposition2" value="service" tabindex="26">&nbsp;&nbsp;Service Needs
        <br><br>
        <span class="body2">
        <input type="text" name="txtSuppliers_professional" size="50" class="powderBlue" tabindex="27"><br>ISG professinal services supplier:</span>
        <br><br>
        <span class="body2"><input type="text" name="txtSuppliers_technical" size="50" class="powderBlue" tabindex="28"><br> ISG technical services supplier:</span>
        <br><br>
        <span class="body2">
        <input type="text" name="txtSuppliers_PTG" size="50" class="powderBlue" tabindex="29"><br> PTG services supplier:</span></td>
        </tr>
        <tr>
        <td colspan="3" class="powderBlue" valign="top"><input type="checkbox" name="chkDisposition3" value="PTG" tabindex="30">&nbsp;&nbsp;PTG<br><br><br>Copier<br>
        <span class="body2"> Make:</span>&nbsp;
        <input type="text" name="txtPTG_copierMake" size="10" class="powderBlue" tabindex="31">&nbsp;&nbsp;<span class="body2"> Model:</span>&nbsp;
        <input type="text" name="txtPTG_copierModel" size="10" class="powderBlue" tabindex="32">&nbsp;&nbsp;<span class="body2"> Quantity:</span>&nbsp;
        <input type="text" name="txtPTG_copierQuantity" size="3" class="powderBlue" tabindex="33">&nbsp;&nbsp;<span class="body2"> Vendor:</span>&nbsp;
        <input type="text" name="txtPTG_copierVendor" size="10" class="powderBlue" tabindex="34">
        <br><br>Fax<br>
        <span class="body2"> Make:</span>&nbsp;<input type="text" name="txtPTG_faxMake" size="10" class="powderBlue" tabindex="35">&nbsp;&nbsp;<span class="body2"> Model:</span>&nbsp;
        <input type="text" name="txtPTG_faxModel" size="10" class="powderBlue" tabindex="36">&nbsp;&nbsp;<span class="body2"> Quantity:</span>&nbsp;
    <input type="text" name="txtPTG_faxQuantity" size="3" class="powderBlue" tabindex="37">&nbsp;&nbsp;<span class="body2"> Vendor:</span>&nbsp;
    <input type="text" name="txtPTG_faxVendor" size="10" class="powderBlue" tabindex="38">
    </td>
        </tr>
        <tr>
        <td colspan="3" class="powderBlue" valign="top"><input type="checkbox" name="chkDisposition4" value="PSSG" tabindex="39">&nbsp;&nbsp;PSSG<br><br><br>Printers<br><span class="body2"> Make:</span>&nbsp;
        <input type="text" name="txtPSSG_printerMake" size="10" class="powderBlue" tabindex="40">&nbsp;&nbsp;<span class="body2"> Model:</span>&nbsp;
        <input type="text" name="txtPSSG_printerModel" size="10" class="powderBlue" tabindex="41">&nbsp;&nbsp;<span class="body2"> Quantity:</span>&nbsp;
        <input type="text" name="txtPSSG_printerQuantity" size="3" class="powderBlue" tabindex="42">&nbsp;&nbsp;<span class="body2"> Vendor:</span>&nbsp;
        <input type="text" name="txtPSSG_printerVendor" size="10" class="powderBlue" tabindex="43"><br><br><br>Supplies<br><span class="body2"> Type of Supplies:</span>&nbsp;
        <input type="text" name="txtPSSG_suppliesType" size="41" class="powderBlue" tabindex="44">&nbsp;&nbsp;<span class="body2"> Vendor:</span>&nbsp;
    <input type="text" name="txtPSSG_suppliesVendor" size="10" class="powderBlue" tabindex="45">
    </td>
        </tr>
         <tr>
        <td colspan="3" class="powderBlue" valign="top"><input type="checkbox" name="chkDisposition5" value="ISG" tabindex="46">&nbsp;&nbsp;ISG<br><br><br>Server<br><span class="body2"> Make:</span>&nbsp;
    <input type="text" name="txtISG_serverMake" size="10" class="powderBlue" tabindex="47">&nbsp;&nbsp;<span class="body2"> Model:</span>&nbsp;
        <input type="text" name="txtISG_serverModel" size="10" class="powderBlue" tabindex="48">&nbsp;&nbsp;<span class="body2"> Quantity:</span>&nbsp;
        <input type="text" name="txtISG_serverQuantity" size="3" class="powderBlue" tabindex="49">&nbsp;&nbsp;<span class="body2"> Vendor:</span>&nbsp;
        <input type="text" name="txtISG_serverVendor" size="10" class="powderBlue" tabindex="50"><br><br><br>PC<br><span class="body2"> Make:</span>&nbsp;
        <input type="text" name="txtISG_pcMake" size="10" class="powderBlue" tabindex="51">&nbsp;&nbsp;<span class="body2"> Model:</span>&nbsp;
        <input type="text" name="txtISG_pcModel" size="10" class="powderBlue" tabindex="52">&nbsp;&nbsp;<span class="body2"> Quantity:</span>&nbsp;
        <input type="text" name="txtISG_pcQuantity" size="3" class="powderBlue" tabindex="53">&nbsp;&nbsp;<span class="body2"> Vendor:</span>&nbsp;
        <input type="text" name="txtISG_pcVendor" size="10" class="powderBlue" tabindex="54"><br><br><br>Network &amp; Desktop O/S<br><span class="body2"> Make:</span>&nbsp;
        <input type="text" name="txtISG_desktopMake" size="10" class="powderBlue" tabindex="55">&nbsp;&nbsp;<span class="body2"> Model:</span>&nbsp;
        <input type="text" name="txtISG_desktopModel" size="10" class="powderBlue" tabindex="56">&nbsp;&nbsp;<span class="body2"> Quantity:</span>&nbsp;
        <input type="text" name="txtISG_desktopQuantity" size="3" class="powderBlue" tabindex="57">&nbsp;&nbsp;<span class="body2"> Vendor:</span>&nbsp;
        <input type="text" name="txtISG_desktopVendor" size="10" class="powderBlue" tabindex="58">
<br><br><br>Network Infrastructure<br><span class="body2"> Make:</span>&nbsp;
        <input type="text" name="txtISG_infrastructureMake" size="10" class="powderBlue" tabindex="59">&nbsp;&nbsp;<span class="body2"> Model:</span>&nbsp;
        <input type="text" name="txtISG_infrastructureModel" size="10" class="powderBlue" tabindex="60">&nbsp;&nbsp;<span class="body2"> Quantity:</span>&nbsp;
        <input type="text" name="txtISG_infrastructureQuantity" size="3" class="powderBlue" tabindex="61">&nbsp;&nbsp;<span class="body2"> Vendor:</span>&nbsp;
        <input type="text" name="txtISG_infrastructureVendor" size="10" class="powderBlue" tabindex="62">
        </td>
         </tr>
        </table>
        <!-- end inner table 4 -->
    </td>
      <td>&nbsp;</td>
    </tr>
  <tr>
    <td colspan="3"><hr></td>
    <td>&nbsp;</td>
    </tr>
     <tr>
    <td class="powderBlue" colspan="3"><span class="style1">*</span>Who will be the attending Guest?<br><br><br><span class="body2"> Name:</span>&nbsp;
    <input type="text" name="txtGuestName1" size="20" class="powderBlue" tabindex="63">&nbsp;&nbsp;<span class="body2"> Title:</span>&nbsp;
    <input type="text" name="txtGuestTitle1" size="20" class="powderBlue" tabindex="64"><br><br><span class="body2"> Name:</span>&nbsp;
    <input type="text" name="txtGuestName2" size="20" class="powderBlue" tabindex="65">&nbsp;&nbsp;<span class="body2"> Title:</span>&nbsp;
    <input type="text" name="txtGuestTitle2" size="20" class="powderBlue" tabindex="66"><br><br><span class="body2"> Name:</span>&nbsp;
    <input type="text" name="txtGuestName3" size="20" class="powderBlue" tabindex="67">&nbsp;&nbsp;<span class="body2"> Title:</span>&nbsp;
    <input type="text" name="txtGuestTitle3" size="20" class="powderBlue" tabindex="68"><br><br><span class="body2"> Name:</span>&nbsp;
    <input type="text" name="txtGuestName4" size="20" class="powderBlue" tabindex="69">&nbsp;&nbsp;<span class="body2"> Title:</span>&nbsp;
    <input type="text" name="txtGuestTitle4" size="20" class="powderBlue" tabindex="70"><br><br><span class="body2"> Additional:</span>&nbsp;
    <textarea name="taAdditional" cols="50" rows="1" tabindex="71"></textarea>
    </td>
      <td>&nbsp;</td>
    </tr>
     <tr>
  <td class="powderBlue" colspan="3"><br> <span class="style1">*</span>Who will be attending the ESI meeting prior to the cape?<br><br><br><textarea rows="5" cols="85" name="taEsiOnly" class="powderBlue" tabindex="72"></textarea></td>
  <td>&nbsp;</td>
    </tr>
    <tr>
    <td class="powderBlue" colspan="3"><span class="style1">*</span>Has the ESI Only meeting been sent out?<input type="radio" name="rdoEsiOnly" value="yes" tabindex="73">&nbsp;yes&nbsp;&nbsp;<input type="radio" name="rdoEsiOnly" value="no" tabindex="74">&nbsp;no</td>
      <td>&nbsp;</td>
    </tr>
     <tr>
    <td class="powderBlue" colspan="3"><br> <span class="style1">*</span>Why has customer requested a corporate cape and what do we hope to achieve?<br><br><br><textarea rows="5" cols="85" name="taCapePurpose" class="powderBlue" tabindex="75"></textarea></td>
      <td>&nbsp;</td>
    </tr>
     <tr>
    <td class="powderBlue" colspan="3"><br> <span class="style1">*</span>Who do we already know in the account?<br><br><br><textarea rows="5" cols="85" name="taKnownAcctMem" class="powderBlue" tabindex="76"></textarea></td>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td class="powderBlue" colspan="3"><br> Please enter any additional information relevant to the presentation?<br><br><br><textarea rows="5" cols="85" name="taAdditionalInfo" class="powderBlue" tabindex="77"></textarea></td>
    <td>&nbsp;</td>
    </tr>
    <tr><td class="powderBlue" colspan="3"><br> <span class="style1">*</span>What is the industry they are apart of and do we have reference accounts in that industry?<br><br><br><textarea rows="5" cols="85" name="taCustomerIndustry" class="powderBlue" tabindex="78"></textarea></td>
  <td>&nbsp;</td>
    </tr>
    <tr>
    <td class="powderBlue" colspan="3"><br> Who are our competitors?<br><br><br><textarea rows="5" cols="85" name="taCompetitors" class="powderBlue" tabindex="79"></textarea></td>
  <td>&nbsp;</td>
    </tr>
    <tr>
    <td colspan="3"><hr><span class="powderBlue"><span class="style1">*</span>Corporate Cape Tour Stops:</span><span class="body2">Check all that apply</span></td>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td colspan="3">
        <!-- inner table 5 -->
        <table width="100%" border="0" cellspacing="5" cellpadding="5">
        <tr>
        <td height="36" colspan="9"><span class="powderBlue"><br>Building 1:</span></td>
        </tr>
        <tr >
        <td height="37" colspan="2" valign="bottom" class="body2">ISG Bullpen&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="ISGBullpen" tabindex="80"></td>
    <td colspan="2" valign="bottom" class="body2">PTG Bullpen&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="PTGBullpen" tabindex="81"></td>
    <td colspan="2" valign="bottom" class="body2">E-Com&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="E-com" tabindex="82"></td>
    <td colspan="3" valign="bottom" class="body2">Demo Room&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="DemoRoom" tabindex="83"></td>
        </tr>
        <tr>
        <td height="57" colspan="9"><hr><span class="powderBlue"><br>Building 2:</span></td>
        </tr>
        <tr>
        <td width="99" height="50" valign="bottom" class="body2">PC Shop&nbsp;&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="pcShop" tabindex="84"></td>
        <td colspan="2" valign="bottom" class="body2">Config Center&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="config" tabindex="85"></td>
        <td colspan="2" valign="bottom" class="body2">Services&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="professional" tabindex="86"></td>
        <td colspan="2" valign="bottom" class="body2">Training Division&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="Training" tabindex="87"></td>
        <td colspan="2" valign="bottom" class="body2">NOC&nbsp;<input type="checkbox" id="chkTour" name="chkTour" value="NOC" tabindex="88"></td>
        </tr>
        <tr>
        <td height="57" colspan="9"><hr><span class="powderBlue"><br>Building 3:</span></td>
        </tr>
        <tr>
        <td height="24" colspan="9" valign="bottom" class="body2">PSSG&nbsp;&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="PSSG" tabindex="89"></td>
        </tr>
        <tr>
        <td height="57" colspan="9"><hr><span class="powderBlue"><br>Richmond:</span></td>
        </tr>
        <tr>
        <td height="37" valign="bottom" class="body2">ISG&nbsp;&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="ISG" tabindex="90"></td>
        <td colspan="2" valign="bottom" class="body2">PTG&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="PTG" tabindex="91"></td>
        <td colspan="5" valign="bottom" class="body2" >PSSG&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="PSSG" tabindex="92"></td>
        <td width="45" >&nbsp;</td>
        </tr>
        <tr>
        <td height="57" colspan="9"><hr><span class="powderBlue"><br>Lynchburg:</span></td>
        </tr>
        <tr>
        <td height="37" valign="bottom" class="body2">ISG&nbsp;&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="ISG" tabindex="93"></td>
        <td colspan="2" valign="bottom" class="body2">PTG&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="PTG" tabindex="94"></td>
        <td colspan="5" valign="bottom" class="body2" >PSSG&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="PSSG" tabindex="95"></td>
        <td >&nbsp;</td>
        </tr>
        <tr>
        <td height="57" colspan="9"><hr><span class="powderBlue"><br>Roanoke:</span></td>
        </tr>
        <tr>
        <td height="37" valign="bottom" class="body2">ISG&nbsp;&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="ISG" tabindex="96"></td>
        <td colspan="2" valign="bottom" class="body2">PTG&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="PTG" tabindex="97"></td>
        <td colspan="5" valign="bottom" class="body2" >PSSG&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="PSSG" tabindex="98"></td>
        </tr>
        </table>
        <!-- end inner table 5 -->
    </td>
    <td>&nbsp;</td>
    </tr>
    </table>
    <!-- end inner table 1 -->
</td>
</tr>
<tr>
<td align="center"><input type="reset" name="reset" value="clear" tabindex="99" >
&nbsp;&nbsp;<input type="submit" value="Submit" tabindex="100" >&nbsp;&nbsp;<input type="Hidden" name="cc" id="cc" size="1">
&nbsp;</td>
</tr>
</table>
<!-- end outer table -->
</form>
</body>
</html>
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <head>
  4. <title>ESI Corporate Cape Questionnaire</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  6. <style type="text/css">
  7. <!--
  8. .powderBlue { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: xx-small; font-style: normal; line-height: normal; font-weight: bold; color: #354453; text-decoration: none}
  9. .body2 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: xx-small; font-style: normal; line-height: normal; font-weight: normal; color: #2d1654; text-decoration: none }
  10. .style1 {
  11.     color: #FF0000;
  12.     font-weight: bold;
  13. }
  14. -->
  15. </style>
  16. <script language="JavaScript1.2" type="text/JavaScript">
  17. <!-- hide from old browsers
  18. //address array
  19.     address = new Array();
  20.     address[0] = "MeineChrista@peoplepc.com";
  21.     address[2] = "MineChrista@hotmail.com";
  22.     address[3] = "MeineChrista@peoplepc.com";
  23.     address[4] = "MineChrista@hotmail.com";
  24.     address[5] = "MeineChrista@peoplepc.com";
  25.     address[6] = "MineChrista@hotmail.com";
  26.     address[7] = "MeineChrista@peoplepc.com";
  27.     address[8] = "MineChrista@hotmail.com";
  28.     address[9] = "MeineChrista@peoplepc.com";
  29.     address[10] = "MineChrista@hotmail.com";
  30.     address[11] = "MeineChrista@peoplepc.com";
  31.     address[12] = "MineChrista@hotmail.com";
  32.     address[13] = "MeineChrista@peoplepc.com";
  33.     address[14] = "MineChrista@hotmail.com";
  34.     address[15] = "MeineChrista@peoplepc.com";
  35.     address[16] = "MineChrista@hotmail.com";
  36.     address[17] = "MeineChrista@peoplepc.com";
  37.     address[18] = "MineChrista@hotmail.com";
  38. //function to build address string
  39. function buildMail(){
  40.     mailStr = "";
  41.     //loop thru checkboxes adding its corrosponding address to the cc string if checked
  42.     for (i=0; i<address.length; i++){
  43.         if(document.corpCape.chkTour[i].checked){
  44.             if(mailStr != ""){mailStr += ";";}
  45.             mailStr += address[i];
  46.         }//end if
  47.     }//end for
  48.     //set the value of cc hidden to cc string
  49.     document.corpCape.cc.value = mailStr;
  50. }//end function buildMail
  51. //Stop hiding from old browsers -->
  52. </script>
  53. <script language="JavaScript1.2" type="text/JavaScript">
  54. <!-- hide from old browsers
  55. function verifyFields(){
  56. if(document.corpCape.txtDate.value.length < 1){
  57. alert("Please enter date of request!");
  58. document.corpCape.txtDate.focus();
  59. return false;
  60. }//end 'date of request' validation if statement
  61. // =======================================================
  62. if(document.corpCape.txtDivision.value.length < 1){
  63. alert("Please enter your Division!");
  64. document.corpCape.txtDivision.focus();
  65. return false;
  66. }//end 'division' validation if statement
  67. // =======================================================
  68. if(document.corpCape.txtEsiRep.value.length < 1){
  69. alert("Please enter ESI Rep!");
  70. document.corpCape.txtEsiRep.focus();
  71. return false;
  72. }//end 'ESI rep' validation if statement
  73. // =======================================================
  74. if(document.corpCape.txtCustomerName.value.length < 1){
  75. alert("Please enter Customer's Name!");
  76. document.corpCape.txtCustomerName.focus();
  77. return false;
  78. }//end 'customer name' validation if statement
  79. // =======================================================
  80. //verify that at least one check box has been selected
  81. var check1="";
  82. if(document.corpCape.rdoExistingCust.checked){
  83.     for(var intCount2=0; intCount2<document.corpCape.chkDivisions.length; intCount2++){
  84.         if(document.corpCape.chkDivisions[intCount2].checked){
  85.                 check1=document.corpCape.chkDivisions[intCount2].value;
  86.                 break;
  87.             }//end if()
  88.         }//end for loop
  89.     if(check1==""){
  90.         alert("Which division is existing customer doing business with?");
  91.         return false;
  92.     }
  93. }//end 'which division doing business w/' validation if statement
  94. // =======================================================
  95. if(document.corpCape.rdoExistingCust.checked){
  96.     if(document.corpCape.taSalesHistory.value.length < 1){
  97.         alert("Please list sales history!");
  98.         document.corpCape.taSalesHistory.focus();
  99.     return false;
  100.     }//end if
  101. }//end 'sales history' validation if statement
  102. // =======================================================
  103. if(document.corpCape.txtGuestName1.value.length < 1){
  104. alert("Please enter guest name!");
  105. document.corpCape.txtGuestName1.focus();
  106. return false;
  107. }//end 'guest name' validation if statement
  108. // =======================================================
  109. if(document.corpCape.txtGuestTitle1.value.length < 1){
  110. alert("Please enter guest title!");
  111. document.corpCape.txtGuestTitle1.focus();
  112. return false;
  113. }//end 'guest title' validation if statement
  114. // =======================================================
  115. if(document.corpCape.taEsiOnly.value.length < 1){
  116. alert("Who will be attending ESI Only meeting?");
  117. document.corpCape.taEsiOnly.focus();
  118. return false;
  119. }//end 'guest name' validation if statement
  120. // =======================================================
  121. //verify that at least one radio button has been selected
  122. var radio2="";
  123. for(var intCount3=0; intCount3<document.corpCape.rdoEsiOnly.length; intCount3++){
  124.         if(document.corpCape.rdoEsiOnly[intCount3].checked){
  125.                 radio2=document.corpCape.rdoEsiOnly[intCount3].value;
  126.                 break;
  127.             }//end if()
  128.         }//end for loop
  129. if(radio2==""){
  130.         alert("Has the ESI ONLY meeting been sent out?");
  131.         return false;
  132. }//end 'ESI Only' validation if statement
  133. // =======================================================
  134. if(document.corpCape.taCapePurpose.value.length < 1){
  135. alert("What is the purpose of this Corporate Cape?");
  136. document.corpCape.taCapePurpose.focus();
  137. return false;
  138. }//end 'guest name' validation if statement
  139. // =======================================================
  140. if(document.corpCape.taKnownAcctMem.value.length < 1){
  141. alert("Who do we already know in this account?");
  142. document.corpCape.taKnownAcctMem.focus();
  143. return false;
  144. }//end 'known acct members' validation if statement
  145. // =======================================================
  146. if(document.corpCape.taCustomerIndustry.value.length < 1){
  147. alert("What is customer's industry?");
  148. document.corpCape.taCustomerIndustry.focus();
  149. return false;
  150. }//end 'known acct members' validation if statement
  151. // =======================================================
  152. //verify that at least one check box has been selected
  153. var check2="";
  154. for(var intCount4=0; intCount4<document.corpCape.chkTour.length; intCount4++){
  155.         if(document.corpCape.chkTour[intCount4].checked){
  156.                 check2=document.corpCape.chkTour[intCount4].value;
  157.                 break;
  158.             }//end if()
  159.         }//end for loop
  160. if(check2==""){
  161.         alert("Please Select a Tour Stop!");
  162.         return false;
  163. }//end 'tour stop' validation if statement
  164. // =======================================================
  165. buildMail();
  166. }//end function verifyFields()
  167. //Stop hiding from old browsers -->
  168. </script>
  169. </head>
  170. <body bgcolor="#FFFFFF" text="#000000" background="http://www.esi.net/marketing/corpCape/strip_02.gif">
  171. <form action="cdonts.asp" method="post" name="corpCape" onsubmit="return verifyFields();">
  172. <!-- outer table begins -->
  173. <table background="http://www.esi.net/marketing/corpCape/tile_04.gif" align="center" width="600" border="1" cellspacing="5" cellpadding="5" bordercolor="2D1654">
  174. <tr>
  175. <td align="center" valign="middle"><img src="http://www.esi.net/marketing/corpCape/esi_cc.gif" border="0"></td>
  176. </tr>
  177. <tr>
  178. <td>
  179.         <!-- inner table 1 -->
  180.     <table border="0" width="100%" cellspacing="5" cellpadding="5">
  181.     <tr>
  182.     <td class="body2" colspan="4"><span class="style1">*</span><span class="powderBlue">Required</span></td>
  183.     </tr>
  184.     <tr>
  185.   <td class="powderBlue"><span class="style1">*</span>Date of Request:&nbsp;&nbsp;</td>
  186.     <td><input type="text" name="txtDate" size="25" tabindex="1">&nbsp;&nbsp;&nbsp;&nbsp;</td>
  187.   <td><span class="powderBlue"><span class="style1">*</span>Division:</span>&nbsp;&nbsp;<input type="text" name="txtDivision" size="10" tabindex="2"></td>
  188.      <td>&nbsp;</td>
  189.     </tr>
  190.     <tr>
  191.     <td class="powderBlue"><span class="style1">*</span>ESI Rep:&nbsp;&nbsp;</td>
  192.     <td colspan="2"><input type="text" name="txtEsiRep" size="30" tabindex="3"></td>
  193.      <td>&nbsp;</td>
  194.     </tr>
  195.      <tr>
  196.     <td colspan="3"><hr></td><td>&nbsp;</td>
  197.     </tr>
  198.     <tr>
  199.   <td class="powderBlue"><span class="style1">*</span>Customer Name:&nbsp;&nbsp;</td>
  200.     <td colspan="2"><input type="text" name="txtCustomerName" size="50" tabindex="4"></td>
  201.      <td>&nbsp;</td>
  202.     </tr>
  203.      <tr>
  204.   <td class="powderBlue" colspan="3">Is this an existing ESI customer?
  205.   <input type="radio" name="rdoExistingCust" value="yes" tabindex="5">&nbsp;yes</td>
  206.       <td>&nbsp;</td>
  207.     </tr>
  208.     <tr>
  209.   <td class="powderBlue" colspan="3"><span class="style1">*</span>If yes, please indicate which divisions the customer is doing business with and give a brief description of sales history.</td>
  210.       <td>&nbsp;</td>
  211.     </tr>
  212.     <tr>
  213.   <td colspan="3">
  214.             <!-- inner table 2 -->
  215.             <table width="75%" border="0" cellspacing="5" cellpadding="5">
  216.             <tr >
  217.       <td class="powderBlue"><input type="checkbox" name="chkDivisions" value="ISG" tabindex="7"><br>ISG</td>
  218.       <td class="powderBlue"><input type="checkbox" name="chkDivisions" value="PTG" tabindex="8"><br>PTG</td>
  219.       <td colspan="2" class="powderBlue"><input type="checkbox" name="chkDivisions" value="PSSG" tabindex="9"><br>PSSG</td>
  220.             </tr>
  221.             <tr>
  222.       <td class="powderBlue"><input type="checkbox" name="chkDivisions" value="Service" tabindex="10"><br>Service</td>
  223.       <td class="powderBlue"><input type="checkbox" name="chkDivisions" value="Training" tabindex="11"><br>Training</td>
  224.       <td class="powderBlue"><input type="checkbox" name="chkDivisions" value="Printshop" tabindex="12"><br>Printshop</td>
  225.             </tr>
  226.             </table>
  227.             <!-- end inner table 2 -->
  228.     </td>
  229.       <td>&nbsp;</td>
  230.     </tr>
  231.     <tr>
  232.     <td class="powderBlue" colspan="3"><span class="style1">*</span>Description of sales history<br><br>
  233.     <textarea rows="10" cols="85" name="taSalesHistory" class="powderBlue" tabindex="13"></textarea></td>
  234.       <td>&nbsp;</td>
  235.     </tr>
  236.       <tr>
  237.     <td colspan="3"><hr></td>
  238.     <td>&nbsp;</td>
  239.     </tr>
  240.       <tr>
  241.     <td class="powderBlue" colspan="2">How many employees does the customer have?&nbsp;&nbsp;</td>
  242.     <td colspan="2">
  243.     <select name="optNemployees" class="powderBlue" tabindex="14">
  244.       <option value="under 50">under 50</option>
  245.         <option value="50 - 200">50 - 200</option>
  246.         <option value="200 - 400">200 - 400</option>
  247.         <option value="400 - 800">400 - 800</option>
  248.         <option value="over 800">800 - 1000</option>
  249.         <option value="over 800">over 1000</option>
  250.     </select>
  251.   </td>
  252.   </tr>
  253.     <tr>
  254.     <td class="powderBlue" colspan="2">What is customer's approximate annual revenue?&nbsp;&nbsp;</td>
  255.     <td colspan="2">
  256.     <select name="optRevenue" class="powderBlue" tabindex="15">
  257.       <option value="under 50">under $250,000</option>
  258.     <option value="50 - 200">$250,000 - $500,000</option>
  259.         <option value="200 - 400">$500,000 - $1,000,000</option>
  260.         <option value="400 - 800">$1,000,000 - $2,000,000</option>
  261.         <option value="over 800">over $2,000,000</option> 
  262.     </select>
  263.   </td>
  264.   </tr>
  265.     <tr>
  266.     <td class="powderBlue" colspan="2">What is customer's Fiscal Year End?&nbsp;&nbsp;</td>
  267.     <td colspan="2"><input type="text" name="txtFYE" size="10" tabindex="16"></td>
  268.      </tr>
  269.      <tr>
  270.     <td colspan="3"><hr></td>
  271.     <td>&nbsp;</td>
  272.     </tr>
  273.      <tr>
  274.     <td colspan="3" class="powderBlue">Please provide below the names of the following:</td>
  275.   <td>&nbsp;</td>
  276.     </tr> 
  277.     <tr>
  278.   <!-- inner table 3 -->
  279.     <td colspan="3">
  280.          <table width="75%" border="0" cellspacing="5" cellpadding="5">
  281.          <tr>
  282.         <td class="powderBlue"><input type="text" name="txtCEO" size="25" class="powderBlue" tabindex="17"><br>customer's CEO/President </td>
  283.     <td class="powderBlue"><input type="text" name="txtCIO" size="25" class="powderBlue" tabindex="18"><br>customer's CIO</td>
  284.     <td colspan="2" class="powderBlue"><input type="text" name="txtCTO" size="25" class="powderBlue" tabindex="19"><br>customer's CTO</td>
  285.          </tr>
  286.          <tr>
  287.         <td class="powderBlue">
  288.         <input type="text" name="txtCFO" size="25" class="powderBlue" tabindex="20"><br>customer's CFO</td>
  289.     <td class="powderBlue"><input type="text" name="txtIT" size="25" class="powderBlue" tabindex="21"><br>customer's IT Director</td>
  290.     <td class="powderBlue"><input type="text" name="txtPurchasing" size="25" class="powderBlue" tabindex="22"><br>Head of Purchasing</td>
  291.         </tr>
  292.         </table>
  293.         <!-- end inner table 3 -->
  294.     </td>
  295.       <td>&nbsp;</td>
  296.     </tr>
  297.       <tr>
  298.     <td colspan="3"><hr></td>
  299.     <td>&nbsp;</td>
  300.     </tr>
  301.      <tr>
  302.   <td class="powderBlue" colspan="3">Please provide below the customer's current Equipment/Services/Inventory dispositions:</td>
  303.   <td>&nbsp;</td>
  304.     </tr>
  305.      <tr>
  306.   <td colspan="3">
  307.         <!-- inner table 4 -->
  308.         <table width="100%" border="1" cellspacing="5" cellpadding="5" background="http://www.esi.net/marketing/corpCape/tile_05.gif">
  309.          <tr>
  310.         <td class="powderBlue" valign="top">
  311.         <input type="checkbox" name="chkDisposition1" value="training" tabindex="23">&nbsp;&nbsp;Training
  312.         <br><br>
  313.         <span class="body2">
  314.     <input type="text" name="txtTrainType" size="50" class="powderBlue" tabindex="24"><br>Training Type
  315.         </span>
  316.         <br><br>
  317.         <span class="body2">
  318.     <input type="text" name="txtTrainSupplier" size="50" class="powderBlue" tabindex="25"><br>Training Supplier</span>
  319.         </td>
  320.         <td class="powderBlue" valign="top" colspan="2"><input type="checkbox" name="chkDisposition2" value="service" tabindex="26">&nbsp;&nbsp;Service Needs
  321.         <br><br>
  322.         <span class="body2">
  323.         <input type="text" name="txtSuppliers_professional" size="50" class="powderBlue" tabindex="27"><br>ISG professinal services supplier:</span>
  324.         <br><br>
  325.         <span class="body2"><input type="text" name="txtSuppliers_technical" size="50" class="powderBlue" tabindex="28"><br> ISG technical services supplier:</span>
  326.         <br><br>
  327.         <span class="body2">
  328.         <input type="text" name="txtSuppliers_PTG" size="50" class="powderBlue" tabindex="29"><br> PTG services supplier:</span></td>
  329.         </tr>
  330.         <tr>
  331.         <td colspan="3" class="powderBlue" valign="top"><input type="checkbox" name="chkDisposition3" value="PTG" tabindex="30">&nbsp;&nbsp;PTG<br><br><br>Copier<br>
  332.         <span class="body2"> Make:</span>&nbsp;
  333.         <input type="text" name="txtPTG_copierMake" size="10" class="powderBlue" tabindex="31">&nbsp;&nbsp;<span class="body2"> Model:</span>&nbsp;
  334.         <input type="text" name="txtPTG_copierModel" size="10" class="powderBlue" tabindex="32">&nbsp;&nbsp;<span class="body2"> Quantity:</span>&nbsp;
  335.         <input type="text" name="txtPTG_copierQuantity" size="3" class="powderBlue" tabindex="33">&nbsp;&nbsp;<span class="body2"> Vendor:</span>&nbsp;
  336.         <input type="text" name="txtPTG_copierVendor" size="10" class="powderBlue" tabindex="34">
  337.         <br><br>Fax<br>
  338.         <span class="body2"> Make:</span>&nbsp;<input type="text" name="txtPTG_faxMake" size="10" class="powderBlue" tabindex="35">&nbsp;&nbsp;<span class="body2"> Model:</span>&nbsp;
  339.         <input type="text" name="txtPTG_faxModel" size="10" class="powderBlue" tabindex="36">&nbsp;&nbsp;<span class="body2"> Quantity:</span>&nbsp;
  340.     <input type="text" name="txtPTG_faxQuantity" size="3" class="powderBlue" tabindex="37">&nbsp;&nbsp;<span class="body2"> Vendor:</span>&nbsp;
  341.     <input type="text" name="txtPTG_faxVendor" size="10" class="powderBlue" tabindex="38">
  342.     </td>
  343.         </tr>
  344.         <tr>
  345.         <td colspan="3" class="powderBlue" valign="top"><input type="checkbox" name="chkDisposition4" value="PSSG" tabindex="39">&nbsp;&nbsp;PSSG<br><br><br>Printers<br><span class="body2"> Make:</span>&nbsp;
  346.         <input type="text" name="txtPSSG_printerMake" size="10" class="powderBlue" tabindex="40">&nbsp;&nbsp;<span class="body2"> Model:</span>&nbsp;
  347.         <input type="text" name="txtPSSG_printerModel" size="10" class="powderBlue" tabindex="41">&nbsp;&nbsp;<span class="body2"> Quantity:</span>&nbsp;
  348.         <input type="text" name="txtPSSG_printerQuantity" size="3" class="powderBlue" tabindex="42">&nbsp;&nbsp;<span class="body2"> Vendor:</span>&nbsp;
  349.         <input type="text" name="txtPSSG_printerVendor" size="10" class="powderBlue" tabindex="43"><br><br><br>Supplies<br><span class="body2"> Type of Supplies:</span>&nbsp;
  350.         <input type="text" name="txtPSSG_suppliesType" size="41" class="powderBlue" tabindex="44">&nbsp;&nbsp;<span class="body2"> Vendor:</span>&nbsp;
  351.     <input type="text" name="txtPSSG_suppliesVendor" size="10" class="powderBlue" tabindex="45">
  352.     </td>
  353.         </tr>
  354.          <tr>
  355.         <td colspan="3" class="powderBlue" valign="top"><input type="checkbox" name="chkDisposition5" value="ISG" tabindex="46">&nbsp;&nbsp;ISG<br><br><br>Server<br><span class="body2"> Make:</span>&nbsp;
  356.     <input type="text" name="txtISG_serverMake" size="10" class="powderBlue" tabindex="47">&nbsp;&nbsp;<span class="body2"> Model:</span>&nbsp;
  357.         <input type="text" name="txtISG_serverModel" size="10" class="powderBlue" tabindex="48">&nbsp;&nbsp;<span class="body2"> Quantity:</span>&nbsp;
  358.         <input type="text" name="txtISG_serverQuantity" size="3" class="powderBlue" tabindex="49">&nbsp;&nbsp;<span class="body2"> Vendor:</span>&nbsp;
  359.         <input type="text" name="txtISG_serverVendor" size="10" class="powderBlue" tabindex="50"><br><br><br>PC<br><span class="body2"> Make:</span>&nbsp;
  360.         <input type="text" name="txtISG_pcMake" size="10" class="powderBlue" tabindex="51">&nbsp;&nbsp;<span class="body2"> Model:</span>&nbsp;
  361.         <input type="text" name="txtISG_pcModel" size="10" class="powderBlue" tabindex="52">&nbsp;&nbsp;<span class="body2"> Quantity:</span>&nbsp;
  362.         <input type="text" name="txtISG_pcQuantity" size="3" class="powderBlue" tabindex="53">&nbsp;&nbsp;<span class="body2"> Vendor:</span>&nbsp;
  363.         <input type="text" name="txtISG_pcVendor" size="10" class="powderBlue" tabindex="54"><br><br><br>Network &amp; Desktop O/S<br><span class="body2"> Make:</span>&nbsp;
  364.         <input type="text" name="txtISG_desktopMake" size="10" class="powderBlue" tabindex="55">&nbsp;&nbsp;<span class="body2"> Model:</span>&nbsp;
  365.         <input type="text" name="txtISG_desktopModel" size="10" class="powderBlue" tabindex="56">&nbsp;&nbsp;<span class="body2"> Quantity:</span>&nbsp;
  366.         <input type="text" name="txtISG_desktopQuantity" size="3" class="powderBlue" tabindex="57">&nbsp;&nbsp;<span class="body2"> Vendor:</span>&nbsp;
  367.         <input type="text" name="txtISG_desktopVendor" size="10" class="powderBlue" tabindex="58">
  368. <br><br><br>Network Infrastructure<br><span class="body2"> Make:</span>&nbsp;
  369.         <input type="text" name="txtISG_infrastructureMake" size="10" class="powderBlue" tabindex="59">&nbsp;&nbsp;<span class="body2"> Model:</span>&nbsp;
  370.         <input type="text" name="txtISG_infrastructureModel" size="10" class="powderBlue" tabindex="60">&nbsp;&nbsp;<span class="body2"> Quantity:</span>&nbsp;
  371.         <input type="text" name="txtISG_infrastructureQuantity" size="3" class="powderBlue" tabindex="61">&nbsp;&nbsp;<span class="body2"> Vendor:</span>&nbsp;
  372.         <input type="text" name="txtISG_infrastructureVendor" size="10" class="powderBlue" tabindex="62">
  373.         </td>
  374.          </tr>
  375.         </table>
  376.         <!-- end inner table 4 -->
  377.     </td>
  378.       <td>&nbsp;</td>
  379.     </tr>
  380.   <tr>
  381.     <td colspan="3"><hr></td>
  382.     <td>&nbsp;</td>
  383.     </tr>
  384.      <tr>
  385.     <td class="powderBlue" colspan="3"><span class="style1">*</span>Who will be the attending Guest?<br><br><br><span class="body2"> Name:</span>&nbsp;
  386.     <input type="text" name="txtGuestName1" size="20" class="powderBlue" tabindex="63">&nbsp;&nbsp;<span class="body2"> Title:</span>&nbsp;
  387.     <input type="text" name="txtGuestTitle1" size="20" class="powderBlue" tabindex="64"><br><br><span class="body2"> Name:</span>&nbsp;
  388.     <input type="text" name="txtGuestName2" size="20" class="powderBlue" tabindex="65">&nbsp;&nbsp;<span class="body2"> Title:</span>&nbsp;
  389.     <input type="text" name="txtGuestTitle2" size="20" class="powderBlue" tabindex="66"><br><br><span class="body2"> Name:</span>&nbsp;
  390.     <input type="text" name="txtGuestName3" size="20" class="powderBlue" tabindex="67">&nbsp;&nbsp;<span class="body2"> Title:</span>&nbsp;
  391.     <input type="text" name="txtGuestTitle3" size="20" class="powderBlue" tabindex="68"><br><br><span class="body2"> Name:</span>&nbsp;
  392.     <input type="text" name="txtGuestName4" size="20" class="powderBlue" tabindex="69">&nbsp;&nbsp;<span class="body2"> Title:</span>&nbsp;
  393.     <input type="text" name="txtGuestTitle4" size="20" class="powderBlue" tabindex="70"><br><br><span class="body2"> Additional:</span>&nbsp;
  394.     <textarea name="taAdditional" cols="50" rows="1" tabindex="71"></textarea>
  395.     </td>
  396.       <td>&nbsp;</td>
  397.     </tr>
  398.      <tr>
  399.   <td class="powderBlue" colspan="3"><br> <span class="style1">*</span>Who will be attending the ESI meeting prior to the cape?<br><br><br><textarea rows="5" cols="85" name="taEsiOnly" class="powderBlue" tabindex="72"></textarea></td>
  400.   <td>&nbsp;</td>
  401.     </tr>
  402.     <tr>
  403.     <td class="powderBlue" colspan="3"><span class="style1">*</span>Has the ESI Only meeting been sent out?<input type="radio" name="rdoEsiOnly" value="yes" tabindex="73">&nbsp;yes&nbsp;&nbsp;<input type="radio" name="rdoEsiOnly" value="no" tabindex="74">&nbsp;no</td>
  404.       <td>&nbsp;</td>
  405.     </tr>
  406.      <tr>
  407.     <td class="powderBlue" colspan="3"><br> <span class="style1">*</span>Why has customer requested a corporate cape and what do we hope to achieve?<br><br><br><textarea rows="5" cols="85" name="taCapePurpose" class="powderBlue" tabindex="75"></textarea></td>
  408.       <td>&nbsp;</td>
  409.     </tr>
  410.      <tr>
  411.     <td class="powderBlue" colspan="3"><br> <span class="style1">*</span>Who do we already know in the account?<br><br><br><textarea rows="5" cols="85" name="taKnownAcctMem" class="powderBlue" tabindex="76"></textarea></td>
  412.     <td>&nbsp;</td>
  413.     </tr>
  414.     <tr>
  415.     <td class="powderBlue" colspan="3"><br> Please enter any additional information relevant to the presentation?<br><br><br><textarea rows="5" cols="85" name="taAdditionalInfo" class="powderBlue" tabindex="77"></textarea></td>
  416.     <td>&nbsp;</td>
  417.     </tr>
  418.     <tr><td class="powderBlue" colspan="3"><br> <span class="style1">*</span>What is the industry they are apart of and do we have reference accounts in that industry?<br><br><br><textarea rows="5" cols="85" name="taCustomerIndustry" class="powderBlue" tabindex="78"></textarea></td>
  419.   <td>&nbsp;</td>
  420.     </tr>
  421.     <tr>
  422.     <td class="powderBlue" colspan="3"><br> Who are our competitors?<br><br><br><textarea rows="5" cols="85" name="taCompetitors" class="powderBlue" tabindex="79"></textarea></td>
  423.   <td>&nbsp;</td>
  424.     </tr>
  425.     <tr>
  426.     <td colspan="3"><hr><span class="powderBlue"><span class="style1">*</span>Corporate Cape Tour Stops:</span><span class="body2">Check all that apply</span></td>
  427.     <td>&nbsp;</td>
  428.     </tr>
  429.     <tr>
  430.     <td colspan="3">
  431.         <!-- inner table 5 -->
  432.         <table width="100%" border="0" cellspacing="5" cellpadding="5">
  433.         <tr>
  434.         <td height="36" colspan="9"><span class="powderBlue"><br>Building 1:</span></td>
  435.         </tr>
  436.         <tr >
  437.         <td height="37" colspan="2" valign="bottom" class="body2">ISG Bullpen&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="ISGBullpen" tabindex="80"></td>
  438.     <td colspan="2" valign="bottom" class="body2">PTG Bullpen&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="PTGBullpen" tabindex="81"></td>
  439.     <td colspan="2" valign="bottom" class="body2">E-Com&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="E-com" tabindex="82"></td>
  440.     <td colspan="3" valign="bottom" class="body2">Demo Room&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="DemoRoom" tabindex="83"></td>
  441.         </tr>
  442.         <tr>
  443.         <td height="57" colspan="9"><hr><span class="powderBlue"><br>Building 2:</span></td>
  444.         </tr>
  445.         <tr>
  446.         <td width="99" height="50" valign="bottom" class="body2">PC Shop&nbsp;&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="pcShop" tabindex="84"></td>
  447.         <td colspan="2" valign="bottom" class="body2">Config Center&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="config" tabindex="85"></td>
  448.         <td colspan="2" valign="bottom" class="body2">Services&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="professional" tabindex="86"></td>
  449.         <td colspan="2" valign="bottom" class="body2">Training Division&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="Training" tabindex="87"></td>
  450.         <td colspan="2" valign="bottom" class="body2">NOC&nbsp;<input type="checkbox" id="chkTour" name="chkTour" value="NOC" tabindex="88"></td>
  451.         </tr>
  452.         <tr>
  453.         <td height="57" colspan="9"><hr><span class="powderBlue"><br>Building 3:</span></td>
  454.         </tr>
  455.         <tr>
  456.         <td height="24" colspan="9" valign="bottom" class="body2">PSSG&nbsp;&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="PSSG" tabindex="89"></td>
  457.         </tr>
  458.         <tr>
  459.         <td height="57" colspan="9"><hr><span class="powderBlue"><br>Richmond:</span></td>
  460.         </tr>
  461.         <tr>
  462.         <td height="37" valign="bottom" class="body2">ISG&nbsp;&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="ISG" tabindex="90"></td>
  463.         <td colspan="2" valign="bottom" class="body2">PTG&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="PTG" tabindex="91"></td>
  464.         <td colspan="5" valign="bottom" class="body2" >PSSG&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="PSSG" tabindex="92"></td>
  465.         <td width="45" >&nbsp;</td>
  466.         </tr>
  467.         <tr>
  468.         <td height="57" colspan="9"><hr><span class="powderBlue"><br>Lynchburg:</span></td>
  469.         </tr>
  470.         <tr>
  471.         <td height="37" valign="bottom" class="body2">ISG&nbsp;&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="ISG" tabindex="93"></td>
  472.         <td colspan="2" valign="bottom" class="body2">PTG&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="PTG" tabindex="94"></td>
  473.         <td colspan="5" valign="bottom" class="body2" >PSSG&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="PSSG" tabindex="95"></td>
  474.         <td >&nbsp;</td>
  475.         </tr>
  476.         <tr>
  477.         <td height="57" colspan="9"><hr><span class="powderBlue"><br>Roanoke:</span></td>
  478.         </tr>
  479.         <tr>
  480.         <td height="37" valign="bottom" class="body2">ISG&nbsp;&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="ISG" tabindex="96"></td>
  481.         <td colspan="2" valign="bottom" class="body2">PTG&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="PTG" tabindex="97"></td>
  482.         <td colspan="5" valign="bottom" class="body2" >PSSG&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="PSSG" tabindex="98"></td>
  483.         </tr>
  484.         </table>
  485.         <!-- end inner table 5 -->
  486.     </td>
  487.     <td>&nbsp;</td>
  488.     </tr>
  489.     </table>
  490.     <!-- end inner table 1 -->
  491. </td>
  492. </tr>
  493. <tr>
  494. <td align="center"><input type="reset" name="reset" value="clear" tabindex="99" >
  495. &nbsp;&nbsp;<input type="submit" value="Submit" tabindex="100" >&nbsp;&nbsp;<input type="Hidden" name="cc" id="cc" size="1">
  496. &nbsp;</td>
  497. </tr>
  498. </table>
  499. <!-- end outer table -->
  500. </form>
  501. </body>
  502. </html>


This is the asp page called cdonts.asp

Code: [ Select ]
<%

Dim frmBldgOne1, frmBldgOne2, frmBldgOne3, frmBldgOne4, frmBldgTwo1, frmBldgTwo2, frmBldgTwo3, frmBldgTwo4
Dim frmBldgTwo5, frmBldgPSSG, frmRichmond, frmRichmond, frmRichmond, frmLynchburg, frmLynchburg
Dim frmLynchburg, frmRoanoke, frmRoanoke, frmRoanoke

frmBldgOne1 = Request.Form("chkTour")(1)
frmBldgOne2 = Request.Form("chkTour")(2)
frmBldgOne3 = Request.Form("chkTour")(3)
frmBldgOne4 = Request.Form("chkTour")(4)
frmBldgTwo1 = Request.Form("chkTour")(5)
frmBldgTwo2 = Request.Form("chkTour")(6)
frmBldgTwo3 = Request.Form("chkTour")(7)
frmBldgTwo4 = Request.Form("chkTour")(8)
frmBldgTwo5 = Request.Form("chkTour")(9)
frmBldgPSSG = Request.Form("chkTour")(10)
frmRichmond = Request.Form("chkTour")(11)
frmRichmond = Request.Form("chkTour")(12)
frmRichmond = Request.Form("chkTour")(13)
frmLynchburg = Request.Form("chkTour")(14)
frmLynchburg = Request.Form("chkTour")(15)
frmLynchburg = Request.Form("chkTour")(16)
frmRoanoke = Request.Form("chkTour")(17)
frmRoanoke = Request.Form("chkTour")(18)
frmRoanoke = Request.Form("chkTour")(19)

Dim objCMail 'holds the CDONTS NewMail Object
Set objCMail = Server.CreateObject("CDONTS.NewMail") 'email server object
objCMail.From = Request.Form("txtEsiRep")
objCMail.To = "phyliss.banks@esi.net"
objCMail.Cc = Request.Form("cc")
objMail.Bcc = ""
objCMail.Subject = "Corporate Cape Request"
objCMail.BodyFormat = 0
objCMail.MailFormat = 0
objCMail.Importance = 2
objCMail.Body = "Corporate Cape Request <hr>" & vbCrLf
objCMail.Body = objCMail.Body & "Date of Request:        " & Request.Form("txtDate") & vbCrLf
objCMail.Body = objCMail.Body & "Division:                " & Request.Form("txtDiv") & vbCrLf
objCMail.Body = objCMail.Body & "ESI Rep:                " & Request.Form("txtEsiRep") & vbCrLf
objCMail.Body = objCMail.Body & "<hr>"vbCrLf & vbCrLf
objCMail.Body = objCMail.Body & "Customer's Name:        " & Request.Form("txtCustomerName") & vbCrLf
objCMail.Body = objCMail.Body & "Existing Customer:        " & Request.Form("rdoExistingCust") & vbCrLf
objCMail.Body = objCMail.Body & "Doing Business w/:        " & Request.Form("chkDivisions") & vbCrLf
objCMail.Body = objCMail.Body & "Sales History:            " & Request.Form("taSalesHistory") & vbCrLf
objCMail.Body = objCMail.Body & "Customer Info<hr>"vbCrLf & vbCrLf
objCMail.Body = objCMail.Body & "# of Employees:        " & Request.Form("optNemployees") & vbCrLf
objCMail.Body = objCMail.Body & "Annual Revenue:        " & Request.Form("optRevenue") & vbCrLf
objCMail.Body = objCMail.Body & "Fiscal Year End:        " & Request.Form("txtFYE") & vbCrLf
objCMail.Body = objCMail.Body & "CEO/President:            " & Request.Form("txtCEO") & vbCrLf
objCMail.Body = objCMail.Body & "CIO:                    " & Request.Form("txtCIO") & vbCrLf
objCMail.Body = objCMail.Body & "CTO:                    " & Request.Form("txtCTO") & vbCrLf
objCMail.Body = objCMail.Body & "CFO:                    " & Request.Form("txtCFO") & vbCrLf
objCMail.Body = objCMail.Body & "IT Director:            " & Request.Form("txtIT") & vbCrLf
objCMail.Body = objCMail.Body & "Head of Purchasing:    " & Request.Form("txtPurchasing") & vbCrLf
objCMail.Body = objCMail.Body & "<u>Customer's Needs Disposition</u><hr>"vbCrLf & vbCrLf
objCMail.Body = objCMail.Body & "Training Type:            " & Request.Form("txtTrainType") & vbCrLf
objCMail.Body = objCMail.Body & "Training Supplier:        " & Request.Form("txtTrainSupplier") & vbCrLf
objCMail.Body = objCMail.Body & "Professional Supplier:    " & Request.Form("txtSuppliers_professional") & vbCrLf
objCMail.Body = objCMail.Body & "Technical Supplier:    " & Request.Form("txtSuppliers_technical") & vbCrLf
objCMail.Body = objCMail.Body & "PTG Service Supplier:    " & Request.Form("txtSuppliers_PTG") & vbCrLf
objCMail.Body = objCMail.Body & "Copier Make:            " & Request.Form("txtPTG_copierMake") & vbCrLf
objCMail.Body = objCMail.Body & "Copier Model:            " & Request.Form("txtPTG_copierModel") & vbCrLf
objCMail.Body = objCMail.Body & "Copier Quantity:        " & Request.Form("txtPTG_copierQuantity") & vbCrLf
objCMail.Body = objCMail.Body & "Copier Vendor:            " & Request.Form("txtPTG_copierVendor") & vbCrLf
objCMail.Body = objCMail.Body & "Fax Make:                " & Request.Form("txtPTG_faxMake") & vbCrLf
objCMail.Body = objCMail.Body & "Fax Model:                " & Request.Form("txtPTG_faxModel") & vbCrLf
objCMail.Body = objCMail.Body & "Fax Quantity:            " & Request.Form("txtPTG_faxQuantity") & vbCrLf
objCMail.Body = objCMail.Body & "Fax Vendor:            " & Request.Form("txtPTG_faxVendor") & vbCrLf
objCMail.Body = objCMail.Body & "Printer Make:            " & Request.Form("txtPSSG_printerMake") & vbCrLf
objCMail.Body = objCMail.Body & "Printer Model:            " & Request.Form("txtPSSG_printerModel") & vbCrLf
objCMail.Body = objCMail.Body & "Printer Quantity:        " & Request.Form("txtPSSG_printerQuantity") & vbCrLf
objCMail.Body = objCMail.Body & "Printer Vendor:        " & Request.Form("txtPSSG_printerVendor") & vbCrLf
objCMail.Body = objCMail.Body & "Type of Supplies:        " & Request.Form("txtPSSG_SuppliesType") & vbCrLf
objCMail.Body = objCMail.Body & "Supplies Vendor:        " & Request.Form("txtPSSG_SuppliesVendor") & vbCrLf
objCMail.Body = objCMail.Body & "Server Make:            " & Request.Form("txtISG_serverMake") & vbCrLf
objCMail.Body = objCMail.Body & "Server Model:            " & Request.Form("txtISG_serverModel") & vbCrLf
objCMail.Body = objCMail.Body & "Server Quantity:        " & Request.Form("txtISG_serverQuantity") & vbCrLf
objCMail.Body = objCMail.Body & "Server Vendor:            " & Request.Form("txtISG_serverVendor") & vbCrLf
objCMail.Body = objCMail.Body & "PC Make:                " & Request.Form("txtISG_pcMake") & vbCrLf
objCMail.Body = objCMail.Body & "PC Model:                " & Request.Form("txtISG_pcModel") & vbCrLf
objCMail.Body = objCMail.Body & "PC Quantity:            " & Request.Form("txtISG_pcQuantity") & vbCrLf
objCMail.Body = objCMail.Body & "PC Vendor:                " & Request.Form("txtISG_pcVendor") & vbCrLf
objCMail.Body = objCMail.Body & "NW & Desktop Make:        " & Request.Form("txtISG_desktopMake") & vbCrLf
objCMail.Body = objCMail.Body & "NW & Desktop Model:    " & Request.Form("txtISG_desktopModel") & vbCrLf
objCMail.Body = objCMail.Body & "NW & Desktop Quantity:    " & Request.Form("txtISG_desktopQuantity") & vbCrLf
objCMail.Body = objCMail.Body & "NW & Desktop Vendor:    " & Request.Form("txtISG_desktopVendor") & vbCrLf
objCMail.Body = objCMail.Body & "NW InfraStructure Make:        " & Request.Form("txtISG_infrastructureMake") & vbCrLf
objCMail.Body = objCMail.Body & "NW InfraStructure Model:        " & Request.Form("txtISG_infrastructureModel") & vbCrLf
objCMail.Body = objCMail.Body & "NW InfraStructure Quantity:    " & Request.Form("txtISG_infrastructureQuantity") & vbCrLf
objCMail.Body = objCMail.Body & "NW InfraStructure Vendor:        " & Request.Form("txtISG_infrastructureVendor") & vbCrLf
objCMail.Body = objCMail.Body & "Attending Guest 1:        " & Request.Form("txtGuestName1") & ", " & Request.Form("txtGuestTitle1") & vbCrLf
objCMail.Body = objCMail.Body & "Attending Guest 2:        " & Request.Form("txtGuestName2") & ", " & Request.Form("txtGuestTitle2") & vbCrLf
objCMail.Body = objCMail.Body & "Attending Guest 3:        " & Request.Form("txtGuestName3") & ", " & Request.Form("txtGuestTitle3") & vbCrLf
objCMail.Body = objCMail.Body & "Attending Guest 4:        " & Request.Form("txtGuestName4") & ", " & Request.Form("txtGuestTitle4") & vbCrLf
objCMail.Body = objCMail.Body & "Additional Guest:        " & Request.Form("taAdditional") & vbCrLf
objCMail.Body = objCMail.Body & "ESI Only Meeting Sent Out:    " & Request.Form("rdoEsiOnly") & vbCrLf
objCMail.Body = objCMail.Body & "ESI Only Meeting Attendees:        " & Request.Form("taEsiOnly") & vbCrLf
objCMail.Body = objCMail.Body & "Corporate Cape Purpose:        " & Request.Form("taCapePurpose") & vbCrLf
objCMail.Body = objCMail.Body & "Known Account Members:            " & Request.Form("taKnownAcctMem") & vbCrLf
objCMail.Body = objCMail.Body & "Additional Information:        " & Request.Form("taAdditionalInfo") & vbCrLf
objCMail.Body = objCMail.Body & "Customer's Industry:            " & Request.Form("taCustomerIndustry") & vbCrLf
objCMail.Body = objCMail.Body & "Competitors:                    " & Request.Form("taCompetitors") & vbCrLf
objCMail.Body = objCMail.Body & "Bldg 1 Tour Stops:            " & frmBldgOne1 & ", " & frmBldgOne2 & ", " &
                                                         frmBldgOne3 & ", " & frmBldgOne4 & vbCrLf
objCMail.Body = objCMail.Body & "Bldg 2 Tour Stops:            " & frmBldgTwo1 & ", " & frmBldgTwo2 & ", " &
                                                         frmBldgTwo3 & ", " & frmBldgTwo4 & ", " &
                                                         frmBldgTwo5 & vbCrLf
objCMail.Body = objCMail.Body & "Bldg 3 Tour Stops:            " & frmBldgPSSG & vbCrLf
objCMail.Body = objCMail.Body & "Richmond Tour Stops:            " & frmRichmond1 & ", " & frmRichmond2 & ", " &
                                                         frmRichmond3 & vbCrLf
objCMail.Body = objCMail.Body & "Lynchburg Tour Stops:            " & frmLynchburg1 & ", " & frmLynchburg2 & ", " &
                                                         frmLynchburg3 & vbCrLf
objCMail.Body = objCMail.Body & "Roanoke Tour Stops:            " & frmRoanoke1 & ", " & frmRoanoke2 & ", " &
                                                         frmRoanoke3 & vbCrLf
objCMail.Send
Set objCMail = Nothing
%>
  1. <%
  2. Dim frmBldgOne1, frmBldgOne2, frmBldgOne3, frmBldgOne4, frmBldgTwo1, frmBldgTwo2, frmBldgTwo3, frmBldgTwo4
  3. Dim frmBldgTwo5, frmBldgPSSG, frmRichmond, frmRichmond, frmRichmond, frmLynchburg, frmLynchburg
  4. Dim frmLynchburg, frmRoanoke, frmRoanoke, frmRoanoke
  5. frmBldgOne1 = Request.Form("chkTour")(1)
  6. frmBldgOne2 = Request.Form("chkTour")(2)
  7. frmBldgOne3 = Request.Form("chkTour")(3)
  8. frmBldgOne4 = Request.Form("chkTour")(4)
  9. frmBldgTwo1 = Request.Form("chkTour")(5)
  10. frmBldgTwo2 = Request.Form("chkTour")(6)
  11. frmBldgTwo3 = Request.Form("chkTour")(7)
  12. frmBldgTwo4 = Request.Form("chkTour")(8)
  13. frmBldgTwo5 = Request.Form("chkTour")(9)
  14. frmBldgPSSG = Request.Form("chkTour")(10)
  15. frmRichmond = Request.Form("chkTour")(11)
  16. frmRichmond = Request.Form("chkTour")(12)
  17. frmRichmond = Request.Form("chkTour")(13)
  18. frmLynchburg = Request.Form("chkTour")(14)
  19. frmLynchburg = Request.Form("chkTour")(15)
  20. frmLynchburg = Request.Form("chkTour")(16)
  21. frmRoanoke = Request.Form("chkTour")(17)
  22. frmRoanoke = Request.Form("chkTour")(18)
  23. frmRoanoke = Request.Form("chkTour")(19)
  24. Dim objCMail 'holds the CDONTS NewMail Object
  25. Set objCMail = Server.CreateObject("CDONTS.NewMail") 'email server object
  26. objCMail.From = Request.Form("txtEsiRep")
  27. objCMail.To = "phyliss.banks@esi.net"
  28. objCMail.Cc = Request.Form("cc")
  29. objMail.Bcc = ""
  30. objCMail.Subject = "Corporate Cape Request"
  31. objCMail.BodyFormat = 0
  32. objCMail.MailFormat = 0
  33. objCMail.Importance = 2
  34. objCMail.Body = "Corporate Cape Request <hr>" & vbCrLf
  35. objCMail.Body = objCMail.Body & "Date of Request:        " & Request.Form("txtDate") & vbCrLf
  36. objCMail.Body = objCMail.Body & "Division:                " & Request.Form("txtDiv") & vbCrLf
  37. objCMail.Body = objCMail.Body & "ESI Rep:                " & Request.Form("txtEsiRep") & vbCrLf
  38. objCMail.Body = objCMail.Body & "<hr>"vbCrLf & vbCrLf
  39. objCMail.Body = objCMail.Body & "Customer's Name:        " & Request.Form("txtCustomerName") & vbCrLf
  40. objCMail.Body = objCMail.Body & "Existing Customer:        " & Request.Form("rdoExistingCust") & vbCrLf
  41. objCMail.Body = objCMail.Body & "Doing Business w/:        " & Request.Form("chkDivisions") & vbCrLf
  42. objCMail.Body = objCMail.Body & "Sales History:            " & Request.Form("taSalesHistory") & vbCrLf
  43. objCMail.Body = objCMail.Body & "Customer Info<hr>"vbCrLf & vbCrLf
  44. objCMail.Body = objCMail.Body & "# of Employees:        " & Request.Form("optNemployees") & vbCrLf
  45. objCMail.Body = objCMail.Body & "Annual Revenue:        " & Request.Form("optRevenue") & vbCrLf
  46. objCMail.Body = objCMail.Body & "Fiscal Year End:        " & Request.Form("txtFYE") & vbCrLf
  47. objCMail.Body = objCMail.Body & "CEO/President:            " & Request.Form("txtCEO") & vbCrLf
  48. objCMail.Body = objCMail.Body & "CIO:                    " & Request.Form("txtCIO") & vbCrLf
  49. objCMail.Body = objCMail.Body & "CTO:                    " & Request.Form("txtCTO") & vbCrLf
  50. objCMail.Body = objCMail.Body & "CFO:                    " & Request.Form("txtCFO") & vbCrLf
  51. objCMail.Body = objCMail.Body & "IT Director:            " & Request.Form("txtIT") & vbCrLf
  52. objCMail.Body = objCMail.Body & "Head of Purchasing:    " & Request.Form("txtPurchasing") & vbCrLf
  53. objCMail.Body = objCMail.Body & "<u>Customer's Needs Disposition</u><hr>"vbCrLf & vbCrLf
  54. objCMail.Body = objCMail.Body & "Training Type:            " & Request.Form("txtTrainType") & vbCrLf
  55. objCMail.Body = objCMail.Body & "Training Supplier:        " & Request.Form("txtTrainSupplier") & vbCrLf
  56. objCMail.Body = objCMail.Body & "Professional Supplier:    " & Request.Form("txtSuppliers_professional") & vbCrLf
  57. objCMail.Body = objCMail.Body & "Technical Supplier:    " & Request.Form("txtSuppliers_technical") & vbCrLf
  58. objCMail.Body = objCMail.Body & "PTG Service Supplier:    " & Request.Form("txtSuppliers_PTG") & vbCrLf
  59. objCMail.Body = objCMail.Body & "Copier Make:            " & Request.Form("txtPTG_copierMake") & vbCrLf
  60. objCMail.Body = objCMail.Body & "Copier Model:            " & Request.Form("txtPTG_copierModel") & vbCrLf
  61. objCMail.Body = objCMail.Body & "Copier Quantity:        " & Request.Form("txtPTG_copierQuantity") & vbCrLf
  62. objCMail.Body = objCMail.Body & "Copier Vendor:            " & Request.Form("txtPTG_copierVendor") & vbCrLf
  63. objCMail.Body = objCMail.Body & "Fax Make:                " & Request.Form("txtPTG_faxMake") & vbCrLf
  64. objCMail.Body = objCMail.Body & "Fax Model:                " & Request.Form("txtPTG_faxModel") & vbCrLf
  65. objCMail.Body = objCMail.Body & "Fax Quantity:            " & Request.Form("txtPTG_faxQuantity") & vbCrLf
  66. objCMail.Body = objCMail.Body & "Fax Vendor:            " & Request.Form("txtPTG_faxVendor") & vbCrLf
  67. objCMail.Body = objCMail.Body & "Printer Make:            " & Request.Form("txtPSSG_printerMake") & vbCrLf
  68. objCMail.Body = objCMail.Body & "Printer Model:            " & Request.Form("txtPSSG_printerModel") & vbCrLf
  69. objCMail.Body = objCMail.Body & "Printer Quantity:        " & Request.Form("txtPSSG_printerQuantity") & vbCrLf
  70. objCMail.Body = objCMail.Body & "Printer Vendor:        " & Request.Form("txtPSSG_printerVendor") & vbCrLf
  71. objCMail.Body = objCMail.Body & "Type of Supplies:        " & Request.Form("txtPSSG_SuppliesType") & vbCrLf
  72. objCMail.Body = objCMail.Body & "Supplies Vendor:        " & Request.Form("txtPSSG_SuppliesVendor") & vbCrLf
  73. objCMail.Body = objCMail.Body & "Server Make:            " & Request.Form("txtISG_serverMake") & vbCrLf
  74. objCMail.Body = objCMail.Body & "Server Model:            " & Request.Form("txtISG_serverModel") & vbCrLf
  75. objCMail.Body = objCMail.Body & "Server Quantity:        " & Request.Form("txtISG_serverQuantity") & vbCrLf
  76. objCMail.Body = objCMail.Body & "Server Vendor:            " & Request.Form("txtISG_serverVendor") & vbCrLf
  77. objCMail.Body = objCMail.Body & "PC Make:                " & Request.Form("txtISG_pcMake") & vbCrLf
  78. objCMail.Body = objCMail.Body & "PC Model:                " & Request.Form("txtISG_pcModel") & vbCrLf
  79. objCMail.Body = objCMail.Body & "PC Quantity:            " & Request.Form("txtISG_pcQuantity") & vbCrLf
  80. objCMail.Body = objCMail.Body & "PC Vendor:                " & Request.Form("txtISG_pcVendor") & vbCrLf
  81. objCMail.Body = objCMail.Body & "NW & Desktop Make:        " & Request.Form("txtISG_desktopMake") & vbCrLf
  82. objCMail.Body = objCMail.Body & "NW & Desktop Model:    " & Request.Form("txtISG_desktopModel") & vbCrLf
  83. objCMail.Body = objCMail.Body & "NW & Desktop Quantity:    " & Request.Form("txtISG_desktopQuantity") & vbCrLf
  84. objCMail.Body = objCMail.Body & "NW & Desktop Vendor:    " & Request.Form("txtISG_desktopVendor") & vbCrLf
  85. objCMail.Body = objCMail.Body & "NW InfraStructure Make:        " & Request.Form("txtISG_infrastructureMake") & vbCrLf
  86. objCMail.Body = objCMail.Body & "NW InfraStructure Model:        " & Request.Form("txtISG_infrastructureModel") & vbCrLf
  87. objCMail.Body = objCMail.Body & "NW InfraStructure Quantity:    " & Request.Form("txtISG_infrastructureQuantity") & vbCrLf
  88. objCMail.Body = objCMail.Body & "NW InfraStructure Vendor:        " & Request.Form("txtISG_infrastructureVendor") & vbCrLf
  89. objCMail.Body = objCMail.Body & "Attending Guest 1:        " & Request.Form("txtGuestName1") & ", " & Request.Form("txtGuestTitle1") & vbCrLf
  90. objCMail.Body = objCMail.Body & "Attending Guest 2:        " & Request.Form("txtGuestName2") & ", " & Request.Form("txtGuestTitle2") & vbCrLf
  91. objCMail.Body = objCMail.Body & "Attending Guest 3:        " & Request.Form("txtGuestName3") & ", " & Request.Form("txtGuestTitle3") & vbCrLf
  92. objCMail.Body = objCMail.Body & "Attending Guest 4:        " & Request.Form("txtGuestName4") & ", " & Request.Form("txtGuestTitle4") & vbCrLf
  93. objCMail.Body = objCMail.Body & "Additional Guest:        " & Request.Form("taAdditional") & vbCrLf
  94. objCMail.Body = objCMail.Body & "ESI Only Meeting Sent Out:    " & Request.Form("rdoEsiOnly") & vbCrLf
  95. objCMail.Body = objCMail.Body & "ESI Only Meeting Attendees:        " & Request.Form("taEsiOnly") & vbCrLf
  96. objCMail.Body = objCMail.Body & "Corporate Cape Purpose:        " & Request.Form("taCapePurpose") & vbCrLf
  97. objCMail.Body = objCMail.Body & "Known Account Members:            " & Request.Form("taKnownAcctMem") & vbCrLf
  98. objCMail.Body = objCMail.Body & "Additional Information:        " & Request.Form("taAdditionalInfo") & vbCrLf
  99. objCMail.Body = objCMail.Body & "Customer's Industry:            " & Request.Form("taCustomerIndustry") & vbCrLf
  100. objCMail.Body = objCMail.Body & "Competitors:                    " & Request.Form("taCompetitors") & vbCrLf
  101. objCMail.Body = objCMail.Body & "Bldg 1 Tour Stops:            " & frmBldgOne1 & ", " & frmBldgOne2 & ", " &
  102.                                                          frmBldgOne3 & ", " & frmBldgOne4 & vbCrLf
  103. objCMail.Body = objCMail.Body & "Bldg 2 Tour Stops:            " & frmBldgTwo1 & ", " & frmBldgTwo2 & ", " &
  104.                                                          frmBldgTwo3 & ", " & frmBldgTwo4 & ", " &
  105.                                                          frmBldgTwo5 & vbCrLf
  106. objCMail.Body = objCMail.Body & "Bldg 3 Tour Stops:            " & frmBldgPSSG & vbCrLf
  107. objCMail.Body = objCMail.Body & "Richmond Tour Stops:            " & frmRichmond1 & ", " & frmRichmond2 & ", " &
  108.                                                          frmRichmond3 & vbCrLf
  109. objCMail.Body = objCMail.Body & "Lynchburg Tour Stops:            " & frmLynchburg1 & ", " & frmLynchburg2 & ", " &
  110.                                                          frmLynchburg3 & vbCrLf
  111. objCMail.Body = objCMail.Body & "Roanoke Tour Stops:            " & frmRoanoke1 & ", " & frmRoanoke2 & ", " &
  112.                                                          frmRoanoke3 & vbCrLf
  113. objCMail.Send
  114. Set objCMail = Nothing
  115. %>
  • s15199d
  • Expert
  • Expert
  • User avatar
  • Posts: 524
  • Loc: NC, USA

Post 3+ Months Ago

Joebert:
Wow! Now, that's a lot of effort to put into a post. Now, I'm a newb designer myself, and at my place of work I use ASP pages and HTML pages w/ javascript. I must say that your code is right down my alley. I can both follow and reproduce your work here. Great tutorial. Not to come accross as ungrateful, but I think I could come up w/ something that would work like yours does. But it would take me ages to get it to work. I gotta ask (b/c I wonder how crappy a newb I am) how long did it take you to come up w/ this.
  • s15199d
  • Expert
  • Expert
  • User avatar
  • Posts: 524
  • Loc: NC, USA

Post 3+ Months Ago

BTW:
This is a great string. I've seen MANY people ask this very question here at OZZU, and I must say this is by far the best most complete answer I've seen provided.
It's refreshing to see everyone so open w/ their code.

Kudos everybody!
  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13502
  • Loc: Florida

Post 3+ Months Ago

Nothing wrong with the form, However I did change it to setup the building 1/2/3 richmond, lynchburg, and roanoke strings to be posted the same way the CC string is instead of doing it with the ASP page.

instead of picking out the changes here's the modified form.
Code: [ Select ]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>ESI Corporate Cape Questionnaire</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.powderBlue { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: xx-small; font-style: normal; line-height: normal; font-weight: bold; color: #354453; text-decoration: none}
.body2 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: xx-small; font-style: normal; line-height: normal; font-weight: normal; color: #2d1654; text-decoration: none }
.style1 {
  color: #FF0000;
  font-weight: bold;
}
-->
</style>
<script language="JavaScript1.2" type="text/JavaScript">
<!-- hide from old browsers
//address array
  address = new Array();
  address[0] = "MeineChrista@peoplepc.com";
  address[2] = "MineChrista@hotmail.com";
  address[3] = "MeineChrista@peoplepc.com";
  address[4] = "MineChrista@hotmail.com";
  address[5] = "MeineChrista@peoplepc.com";
  address[6] = "MineChrista@hotmail.com";
  address[7] = "MeineChrista@peoplepc.com";
  address[8] = "MineChrista@hotmail.com";
  address[9] = "MeineChrista@peoplepc.com";
  address[10] = "MineChrista@hotmail.com";
  address[11] = "MeineChrista@peoplepc.com";
  address[12] = "MineChrista@hotmail.com";
  address[13] = "MeineChrista@peoplepc.com";
  address[14] = "MineChrista@hotmail.com";
  address[15] = "MeineChrista@peoplepc.com";
  address[16] = "MineChrista@hotmail.com";
  address[17] = "MeineChrista@peoplepc.com";
  address[18] = "MineChrista@hotmail.com";

//function to build address string
function buildMail(){
  mailStr = "";
  bldg1TS = "";
  bldg2TS = "";
  bldgPssgTS = "";
  richmondTS = "";
  lynchburgTS = "";
  roanokeTS = "";
  //loop thru checkboxes adding its corrosponding address to the cc string if checked
  for (i=0; i<address.length; i++){
   if(document.corpCape.chkTour[i].checked){
     if(mailStr != ""){mailStr += ";";}
    if(i<4){bldg1TS += document.corpCape.chkTour[i].value + ", ";}
    if(i>3 && i<9){bldg2TS += document.corpCape.chkTour[i].value + ", ";}
    if(i==9){bldgPssgTS += document.corpCape.chkTour[i].value;}
    if(i>9 && i<13){richmondTS += document.corpCape.chkTour[i].value + ", ";}
    if(i>12 && i<16){lynchburgTS += document.corpCape.chkTour[i].value + ", ";}
    if(i>15 && i<19){roanokeTS += document.corpCape.chkTour[i].value + ", ";}
     mailStr += address[i];
   }//end if
  }//end for
  //set the value of cc hidden to cc string
  document.corpCape.cc.value = mailStr;
    document.corpCape.bldg1.value = bldg1TS;
    document.corpCape.bldg2.value = bldg2TS;
    document.corpCape.bldgPssg.value = bldgPssgTS;
    document.corpCape.richmond.value = richmondTS;
    document.corpCape.lynchburg.value = lynchburgTS;
    document.corpCape.roanoke.value = roanokeTS;
}//end function buildMail
//Stop hiding from old browsers -->
</script>

<script language="JavaScript1.2" type="text/JavaScript">
<!-- hide from old browsers
function verifyFields(){
if(document.corpCape.txtDate.value.length < 1){
alert("Please enter date of request!");
document.corpCape.txtDate.focus();
return false;
}//end 'date of request' validation if statement

// =======================================================

if(document.corpCape.txtDivision.value.length < 1){
alert("Please enter your Division!");
document.corpCape.txtDivision.focus();
return false;
}//end 'division' validation if statement
// =======================================================

if(document.corpCape.txtEsiRep.value.length < 1){
alert("Please enter ESI Rep!");
document.corpCape.txtEsiRep.focus();
return false;
}//end 'ESI rep' validation if statement
// =======================================================

if(document.corpCape.txtCustomerName.value.length < 1){
alert("Please enter Customer's Name!");
document.corpCape.txtCustomerName.focus();
return false;
}//end 'customer name' validation if statement
// =======================================================

//verify that at least one check box has been selected
var check1="";

if(document.corpCape.rdoExistingCust.checked){
  for(var intCount2=0; intCount2<document.corpCape.chkDivisions.length; intCount2++){
   if(document.corpCape.chkDivisions[intCount2].checked){
      check1=document.corpCape.chkDivisions[intCount2].value;
      break;
     }//end if()
   }//end for loop

  if(check1==""){
   alert("Which division is existing customer doing business with?");
   return false;
  }
}//end 'which division doing business w/' validation if statement
// =======================================================
if(document.corpCape.rdoExistingCust.checked){
  if(document.corpCape.taSalesHistory.value.length < 1){
   alert("Please list sales history!");
   document.corpCape.taSalesHistory.focus();
  return false;
  }//end if
}//end 'sales history' validation if statement
// =======================================================

if(document.corpCape.txtGuestName1.value.length < 1){
alert("Please enter guest name!");
document.corpCape.txtGuestName1.focus();
return false;
}//end 'guest name' validation if statement
// =======================================================

if(document.corpCape.txtGuestTitle1.value.length < 1){
alert("Please enter guest title!");
document.corpCape.txtGuestTitle1.focus();
return false;
}//end 'guest title' validation if statement
// =======================================================

if(document.corpCape.taEsiOnly.value.length < 1){
alert("Who will be attending ESI Only meeting?");
document.corpCape.taEsiOnly.focus();
return false;
}//end 'guest name' validation if statement
// =======================================================

//verify that at least one radio button has been selected
var radio2="";
for(var intCount3=0; intCount3<document.corpCape.rdoEsiOnly.length; intCount3++){
   if(document.corpCape.rdoEsiOnly[intCount3].checked){
      radio2=document.corpCape.rdoEsiOnly[intCount3].value;
      break;
     }//end if()
   }//end for loop
if(radio2==""){
   alert("Has the ESI ONLY meeting been sent out?");
   return false;
}//end 'ESI Only' validation if statement
// =======================================================

if(document.corpCape.taCapePurpose.value.length < 1){
alert("What is the purpose of this Corporate Cape?");
document.corpCape.taCapePurpose.focus();
return false;
}//end 'guest name' validation if statement
// =======================================================

if(document.corpCape.taKnownAcctMem.value.length < 1){
alert("Who do we already know in this account?");
document.corpCape.taKnownAcctMem.focus();
return false;
}//end 'known acct members' validation if statement
// =======================================================

if(document.corpCape.taCustomerIndustry.value.length < 1){
alert("What is customer's industry?");
document.corpCape.taCustomerIndustry.focus();
return false;
}//end 'known acct members' validation if statement
// =======================================================

//verify that at least one check box has been selected
var check2="";
for(var intCount4=0; intCount4<document.corpCape.chkTour.length; intCount4++){
   if(document.corpCape.chkTour[intCount4].checked){
      check2=document.corpCape.chkTour[intCount4].value;
      break;
     }//end if()
   }//end for loop
if(check2==""){
   alert("Please Select a Tour Stop!");
   return false;
}//end 'tour stop' validation if statement
// =======================================================
buildMail();
}//end function verifyFields()
//Stop hiding from old browsers -->
</script>


</head>

<body bgcolor="#FFFFFF" text="#000000" background="http://www.esi.net/marketing/corpCape/strip_02.gif">

<form action="cdonts.asp" method="post" name="corpCape" onsubmit="return verifyFields();">
<!-- outer table begins -->
<table background="http://www.esi.net/marketing/corpCape/tile_04.gif" align="center" width="600" border="1" cellspacing="5" cellpadding="5" bordercolor="2D1654">
<tr>
<td align="center" valign="middle"><img src="http://www.esi.net/marketing/corpCape/esi_cc.gif" border="0"></td>
</tr>
<tr>
<td>
   <!-- inner table 1 -->
  <table border="0" width="100%" cellspacing="5" cellpadding="5">
  <tr>
  <td class="body2" colspan="4"><span class="style1">*</span><span class="powderBlue">Required</span></td>
  </tr>
  <tr>
  <td class="powderBlue"><span class="style1">*</span>Date of Request:&nbsp;&nbsp;</td>
  <td><input type="text" name="txtDate" size="25" tabindex="1">&nbsp;&nbsp;&nbsp;&nbsp;</td>
  <td><span class="powderBlue"><span class="style1">*</span>Division:</span>&nbsp;&nbsp;<input type="text" name="txtDivision" size="10" tabindex="2"></td>
   <td>&nbsp;</td>
  </tr>
  <tr>
  <td class="powderBlue"><span class="style1">*</span>ESI Rep:&nbsp;&nbsp;</td>
  <td colspan="2"><input type="text" name="txtEsiRep" size="30" tabindex="3"></td>
   <td>&nbsp;</td>
  </tr>
   <tr>
  <td colspan="3"><hr></td><td>&nbsp;</td>
  </tr>
  <tr>
  <td class="powderBlue"><span class="style1">*</span>Customer Name:&nbsp;&nbsp;</td>
  <td colspan="2"><input type="text" name="txtCustomerName" size="50" tabindex="4"></td>
   <td>&nbsp;</td>
  </tr>
   <tr>
  <td class="powderBlue" colspan="3">Is this an existing ESI customer?
  <input type="radio" name="rdoExistingCust" value="yes" tabindex="5">&nbsp;yes</td>
   <td>&nbsp;</td>
  </tr>
  <tr>
  <td class="powderBlue" colspan="3"><span class="style1">*</span>If yes, please indicate which divisions the customer is doing business with and give a brief description of sales history.</td>
   <td>&nbsp;</td>
  </tr>
  <tr>
  <td colspan="3">
     <!-- inner table 2 -->
     <table width="75%" border="0" cellspacing="5" cellpadding="5">
     <tr >
      <td class="powderBlue"><input type="checkbox" name="chkDivisions" value="ISG" tabindex="7"><br>ISG</td>
      <td class="powderBlue"><input type="checkbox" name="chkDivisions" value="PTG" tabindex="8"><br>PTG</td>
      <td colspan="2" class="powderBlue"><input type="checkbox" name="chkDivisions" value="PSSG" tabindex="9"><br>PSSG</td>
     </tr>
     <tr>
      <td class="powderBlue"><input type="checkbox" name="chkDivisions" value="Service" tabindex="10"><br>Service</td>
      <td class="powderBlue"><input type="checkbox" name="chkDivisions" value="Training" tabindex="11"><br>Training</td>
      <td class="powderBlue"><input type="checkbox" name="chkDivisions" value="Printshop" tabindex="12"><br>Printshop</td>
     </tr>
     </table>
     <!-- end inner table 2 -->
  </td>
   <td>&nbsp;</td>
  </tr>
  <tr>
  <td class="powderBlue" colspan="3"><span class="style1">*</span>Description of sales history<br><br>
  <textarea rows="10" cols="85" name="taSalesHistory" class="powderBlue" tabindex="13"></textarea></td>
   <td>&nbsp;</td>
  </tr>
   <tr>
  <td colspan="3"><hr></td>
  <td>&nbsp;</td>
  </tr>
   <tr>
  <td class="powderBlue" colspan="2">How many employees does the customer have?&nbsp;&nbsp;</td>
  <td colspan="2">
  <select name="optNemployees" class="powderBlue" tabindex="14">
    <option value="under 50">under 50</option>
   <option value="50 - 200">50 - 200</option>
   <option value="200 - 400">200 - 400</option>
   <option value="400 - 800">400 - 800</option>
   <option value="over 800">800 - 1000</option>
   <option value="over 800">over 1000</option>
  </select>
  </td>
  </tr>
  <tr>
  <td class="powderBlue" colspan="2">What is customer's approximate annual revenue?&nbsp;&nbsp;</td>
  <td colspan="2">
  <select name="optRevenue" class="powderBlue" tabindex="15">
    <option value="under 50">under $250,000</option>
    <option value="50 - 200">$250,000 - $500,000</option>
   <option value="200 - 400">$500,000 - $1,000,000</option>
   <option value="400 - 800">$1,000,000 - $2,000,000</option>
   <option value="over 800">over $2,000,000</option> 
  </select>
  </td>
  </tr>
  <tr>
  <td class="powderBlue" colspan="2">What is customer's Fiscal Year End?&nbsp;&nbsp;</td>
  <td colspan="2"><input type="text" name="txtFYE" size="10" tabindex="16"></td>
   </tr>
   <tr>
  <td colspan="3"><hr></td>
  <td>&nbsp;</td>
  </tr>
   <tr>
  <td colspan="3" class="powderBlue">Please provide below the names of the following:</td>
  <td>&nbsp;</td>
  </tr> 
  <tr>
  <!-- inner table 3 -->
  <td colspan="3">
    <table width="75%" border="0" cellspacing="5" cellpadding="5">
    <tr>
   <td class="powderBlue"><input type="text" name="txtCEO" size="25" class="powderBlue" tabindex="17"><br>customer's CEO/President </td>
    <td class="powderBlue"><input type="text" name="txtCIO" size="25" class="powderBlue" tabindex="18"><br>customer's CIO</td>
    <td colspan="2" class="powderBlue"><input type="text" name="txtCTO" size="25" class="powderBlue" tabindex="19"><br>customer's CTO</td>
    </tr>
    <tr>
   <td class="powderBlue">
   <input type="text" name="txtCFO" size="25" class="powderBlue" tabindex="20"><br>customer's CFO</td>
    <td class="powderBlue"><input type="text" name="txtIT" size="25" class="powderBlue" tabindex="21"><br>customer's IT Director</td>
    <td class="powderBlue"><input type="text" name="txtPurchasing" size="25" class="powderBlue" tabindex="22"><br>Head of Purchasing</td>
   </tr>
   </table>
   <!-- end inner table 3 -->
  </td>
   <td>&nbsp;</td>
  </tr>
   <tr>
  <td colspan="3"><hr></td>
  <td>&nbsp;</td>
  </tr>
   <tr>
  <td class="powderBlue" colspan="3">Please provide below the customer's current Equipment/Services/Inventory dispositions:</td>
  <td>&nbsp;</td>
  </tr>
   <tr>
  <td colspan="3">
   <!-- inner table 4 -->
   <table width="100%" border="1" cellspacing="5" cellpadding="5" background="http://www.esi.net/marketing/corpCape/tile_05.gif">
    <tr>
   <td class="powderBlue" valign="top">
   <input type="checkbox" name="chkDisposition1" value="training" tabindex="23">&nbsp;&nbsp;Training
   <br><br>
   <span class="body2">
    <input type="text" name="txtTrainType" size="50" class="powderBlue" tabindex="24"><br>Training Type
   </span>
   <br><br>
   <span class="body2">
    <input type="text" name="txtTrainSupplier" size="50" class="powderBlue" tabindex="25"><br>Training Supplier</span>
   </td>
   <td class="powderBlue" valign="top" colspan="2"><input type="checkbox" name="chkDisposition2" value="service" tabindex="26">&nbsp;&nbsp;Service Needs
   <br><br>
   <span class="body2">
   <input type="text" name="txtSuppliers_professional" size="50" class="powderBlue" tabindex="27"><br>ISG professinal services supplier:</span>
   <br><br>
   <span class="body2"><input type="text" name="txtSuppliers_technical" size="50" class="powderBlue" tabindex="28"><br> ISG technical services supplier:</span>
   <br><br>
   <span class="body2">
   <input type="text" name="txtSuppliers_PTG" size="50" class="powderBlue" tabindex="29"><br> PTG services supplier:</span></td>
   </tr>
   <tr>
   <td colspan="3" class="powderBlue" valign="top"><input type="checkbox" name="chkDisposition3" value="PTG" tabindex="30">&nbsp;&nbsp;PTG<br><br><br>Copier<br>
   <span class="body2"> Make:</span>&nbsp;
   <input type="text" name="txtPTG_copierMake" size="10" class="powderBlue" tabindex="31">&nbsp;&nbsp;<span class="body2"> Model:</span>&nbsp;
   <input type="text" name="txtPTG_copierModel" size="10" class="powderBlue" tabindex="32">&nbsp;&nbsp;<span class="body2"> Quantity:</span>&nbsp;
   <input type="text" name="txtPTG_copierQuantity" size="3" class="powderBlue" tabindex="33">&nbsp;&nbsp;<span class="body2"> Vendor:</span>&nbsp;
   <input type="text" name="txtPTG_copierVendor" size="10" class="powderBlue" tabindex="34">
   <br><br>Fax<br>
   <span class="body2"> Make:</span>&nbsp;<input type="text" name="txtPTG_faxMake" size="10" class="powderBlue" tabindex="35">&nbsp;&nbsp;<span class="body2"> Model:</span>&nbsp;
   <input type="text" name="txtPTG_faxModel" size="10" class="powderBlue" tabindex="36">&nbsp;&nbsp;<span class="body2"> Quantity:</span>&nbsp;
    <input type="text" name="txtPTG_faxQuantity" size="3" class="powderBlue" tabindex="37">&nbsp;&nbsp;<span class="body2"> Vendor:</span>&nbsp;
    <input type="text" name="txtPTG_faxVendor" size="10" class="powderBlue" tabindex="38">
    </td>
   </tr>
   <tr>
   <td colspan="3" class="powderBlue" valign="top"><input type="checkbox" name="chkDisposition4" value="PSSG" tabindex="39">&nbsp;&nbsp;PSSG<br><br><br>Printers<br><span class="body2"> Make:</span>&nbsp;
   <input type="text" name="txtPSSG_printerMake" size="10" class="powderBlue" tabindex="40">&nbsp;&nbsp;<span class="body2"> Model:</span>&nbsp;
   <input type="text" name="txtPSSG_printerModel" size="10" class="powderBlue" tabindex="41">&nbsp;&nbsp;<span class="body2"> Quantity:</span>&nbsp;
   <input type="text" name="txtPSSG_printerQuantity" size="3" class="powderBlue" tabindex="42">&nbsp;&nbsp;<span class="body2"> Vendor:</span>&nbsp;
   <input type="text" name="txtPSSG_printerVendor" size="10" class="powderBlue" tabindex="43"><br><br><br>Supplies<br><span class="body2"> Type of Supplies:</span>&nbsp;
   <input type="text" name="txtPSSG_suppliesType" size="41" class="powderBlue" tabindex="44">&nbsp;&nbsp;<span class="body2"> Vendor:</span>&nbsp;
    <input type="text" name="txtPSSG_suppliesVendor" size="10" class="powderBlue" tabindex="45">
    </td>
    </tr>
    <tr>
   <td colspan="3" class="powderBlue" valign="top"><input type="checkbox" name="chkDisposition5" value="ISG" tabindex="46">&nbsp;&nbsp;ISG<br><br><br>Server<br><span class="body2"> Make:</span>&nbsp;
    <input type="text" name="txtISG_serverMake" size="10" class="powderBlue" tabindex="47">&nbsp;&nbsp;<span class="body2"> Model:</span>&nbsp;
   <input type="text" name="txtISG_serverModel" size="10" class="powderBlue" tabindex="48">&nbsp;&nbsp;<span class="body2"> Quantity:</span>&nbsp;
   <input type="text" name="txtISG_serverQuantity" size="3" class="powderBlue" tabindex="49">&nbsp;&nbsp;<span class="body2"> Vendor:</span>&nbsp;
   <input type="text" name="txtISG_serverVendor" size="10" class="powderBlue" tabindex="50"><br><br><br>PC<br><span class="body2"> Make:</span>&nbsp;
   <input type="text" name="txtISG_pcMake" size="10" class="powderBlue" tabindex="51">&nbsp;&nbsp;<span class="body2"> Model:</span>&nbsp;
   <input type="text" name="txtISG_pcModel" size="10" class="powderBlue" tabindex="52">&nbsp;&nbsp;<span class="body2"> Quantity:</span>&nbsp;
   <input type="text" name="txtISG_pcQuantity" size="3" class="powderBlue" tabindex="53">&nbsp;&nbsp;<span class="body2"> Vendor:</span>&nbsp;
   <input type="text" name="txtISG_pcVendor" size="10" class="powderBlue" tabindex="54"><br><br><br>Network &amp; Desktop O/S<br><span class="body2"> Make:</span>&nbsp;
   <input type="text" name="txtISG_desktopMake" size="10" class="powderBlue" tabindex="55">&nbsp;&nbsp;<span class="body2"> Model:</span>&nbsp;
   <input type="text" name="txtISG_desktopModel" size="10" class="powderBlue" tabindex="56">&nbsp;&nbsp;<span class="body2"> Quantity:</span>&nbsp;
   <input type="text" name="txtISG_desktopQuantity" size="3" class="powderBlue" tabindex="57">&nbsp;&nbsp;<span class="body2"> Vendor:</span>&nbsp;
   <input type="text" name="txtISG_desktopVendor" size="10" class="powderBlue" tabindex="58">
<br><br><br>Network Infrastructure<br><span class="body2"> Make:</span>&nbsp;
   <input type="text" name="txtISG_infrastructureMake" size="10" class="powderBlue" tabindex="59">&nbsp;&nbsp;<span class="body2"> Model:</span>&nbsp;
   <input type="text" name="txtISG_infrastructureModel" size="10" class="powderBlue" tabindex="60">&nbsp;&nbsp;<span class="body2"> Quantity:</span>&nbsp;
   <input type="text" name="txtISG_infrastructureQuantity" size="3" class="powderBlue" tabindex="61">&nbsp;&nbsp;<span class="body2"> Vendor:</span>&nbsp;
   <input type="text" name="txtISG_infrastructureVendor" size="10" class="powderBlue" tabindex="62">
   </td>
    </tr>
   </table>
   <!-- end inner table 4 -->
  </td>
   <td>&nbsp;</td>
  </tr>
  <tr>
  <td colspan="3"><hr></td>
  <td>&nbsp;</td>
  </tr>
   <tr>
  <td class="powderBlue" colspan="3"><span class="style1">*</span>Who will be the attending Guest?<br><br><br><span class="body2"> Name:</span>&nbsp;
  <input type="text" name="txtGuestName1" size="20" class="powderBlue" tabindex="63">&nbsp;&nbsp;<span class="body2"> Title:</span>&nbsp;
  <input type="text" name="txtGuestTitle1" size="20" class="powderBlue" tabindex="64"><br><br><span class="body2"> Name:</span>&nbsp;
  <input type="text" name="txtGuestName2" size="20" class="powderBlue" tabindex="65">&nbsp;&nbsp;<span class="body2"> Title:</span>&nbsp;
  <input type="text" name="txtGuestTitle2" size="20" class="powderBlue" tabindex="66"><br><br><span class="body2"> Name:</span>&nbsp;
  <input type="text" name="txtGuestName3" size="20" class="powderBlue" tabindex="67">&nbsp;&nbsp;<span class="body2"> Title:</span>&nbsp;
  <input type="text" name="txtGuestTitle3" size="20" class="powderBlue" tabindex="68"><br><br><span class="body2"> Name:</span>&nbsp;
  <input type="text" name="txtGuestName4" size="20" class="powderBlue" tabindex="69">&nbsp;&nbsp;<span class="body2"> Title:</span>&nbsp;
  <input type="text" name="txtGuestTitle4" size="20" class="powderBlue" tabindex="70"><br><br><span class="body2"> Additional:</span>&nbsp;
  <textarea name="taAdditional" cols="50" rows="1" tabindex="71"></textarea>
  </td>
   <td>&nbsp;</td>
  </tr>
   <tr>
  <td class="powderBlue" colspan="3"><br> <span class="style1">*</span>Who will be attending the ESI meeting prior to the cape?<br><br><br><textarea rows="5" cols="85" name="taEsiOnly" class="powderBlue" tabindex="72"></textarea></td>
  <td>&nbsp;</td>
  </tr>
  <tr>
  <td class="powderBlue" colspan="3"><span class="style1">*</span>Has the ESI Only meeting been sent out?<input type="radio" name="rdoEsiOnly" value="yes" tabindex="73">&nbsp;yes&nbsp;&nbsp;<input type="radio" name="rdoEsiOnly" value="no" tabindex="74">&nbsp;no</td>
   <td>&nbsp;</td>
  </tr>
   <tr>
  <td class="powderBlue" colspan="3"><br> <span class="style1">*</span>Why has customer requested a corporate cape and what do we hope to achieve?<br><br><br><textarea rows="5" cols="85" name="taCapePurpose" class="powderBlue" tabindex="75"></textarea></td>
   <td>&nbsp;</td>
  </tr>
   <tr>
  <td class="powderBlue" colspan="3"><br> <span class="style1">*</span>Who do we already know in the account?<br><br><br><textarea rows="5" cols="85" name="taKnownAcctMem" class="powderBlue" tabindex="76"></textarea></td>
  <td>&nbsp;</td>
  </tr>
  <tr>
  <td class="powderBlue" colspan="3"><br> Please enter any additional information relevant to the presentation?<br><br><br><textarea rows="5" cols="85" name="taAdditionalInfo" class="powderBlue" tabindex="77"></textarea></td>
  <td>&nbsp;</td>
  </tr>
  <tr><td class="powderBlue" colspan="3"><br> <span class="style1">*</span>What is the industry they are apart of and do we have reference accounts in that industry?<br><br><br><textarea rows="5" cols="85" name="taCustomerIndustry" class="powderBlue" tabindex="78"></textarea></td>
  <td>&nbsp;</td>
  </tr>
  <tr>
  <td class="powderBlue" colspan="3"><br> Who are our competitors?<br><br><br><textarea rows="5" cols="85" name="taCompetitors" class="powderBlue" tabindex="79"></textarea></td>
  <td>&nbsp;</td>
  </tr>
  <tr>
  <td colspan="3"><hr><span class="powderBlue"><span class="style1">*</span>Corporate Cape Tour Stops:</span><span class="body2">Check all that apply</span></td>
  <td>&nbsp;</td>
  </tr>
  <tr>
  <td colspan="3">
   <!-- inner table 5 -->
   <table width="100%" border="0" cellspacing="5" cellpadding="5">
   <tr>
   <td height="36" colspan="9"><span class="powderBlue"><br>Building 1:</span></td>
   </tr>
   <tr >
   <td height="37" colspan="2" valign="bottom" class="body2">ISG Bullpen&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="ISGBullpen" tabindex="80"></td>
    <td colspan="2" valign="bottom" class="body2">PTG Bullpen&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="PTGBullpen" tabindex="81"></td>
    <td colspan="2" valign="bottom" class="body2">E-Com&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="E-com" tabindex="82"></td>
    <td colspan="3" valign="bottom" class="body2">Demo Room&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="DemoRoom" tabindex="83"></td>
   </tr>
   <tr>
   <td height="57" colspan="9"><hr><span class="powderBlue"><br>Building 2:</span></td>
   </tr>
   <tr>
   <td width="99" height="50" valign="bottom" class="body2">PC Shop&nbsp;&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="pcShop" tabindex="84"></td>
   <td colspan="2" valign="bottom" class="body2">Config Center&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="config" tabindex="85"></td>
   <td colspan="2" valign="bottom" class="body2">Services&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="professional" tabindex="86"></td>
   <td colspan="2" valign="bottom" class="body2">Training Division&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="Training" tabindex="87"></td>
   <td colspan="2" valign="bottom" class="body2">NOC&nbsp;<input type="checkbox" id="chkTour" name="chkTour" value="NOC" tabindex="88"></td>
   </tr>
   <tr>
   <td height="57" colspan="9"><hr><span class="powderBlue"><br>Building 3:</span></td>
   </tr>
   <tr>
   <td height="24" colspan="9" valign="bottom" class="body2">PSSG&nbsp;&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="PSSG" tabindex="89"></td>
   </tr>
   <tr>
   <td height="57" colspan="9"><hr><span class="powderBlue"><br>Richmond:</span></td>
   </tr>
   <tr>
   <td height="37" valign="bottom" class="body2">ISG&nbsp;&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="ISG" tabindex="90"></td>
   <td colspan="2" valign="bottom" class="body2">PTG&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="PTG" tabindex="91"></td>
   <td colspan="5" valign="bottom" class="body2" >PSSG&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="PSSG" tabindex="92"></td>
   <td width="45" >&nbsp;</td>
   </tr>
   <tr>
   <td height="57" colspan="9"><hr><span class="powderBlue"><br>Lynchburg:</span></td>
   </tr>
   <tr>
   <td height="37" valign="bottom" class="body2">ISG&nbsp;&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="ISG" tabindex="93"></td>
   <td colspan="2" valign="bottom" class="body2">PTG&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="PTG" tabindex="94"></td>
   <td colspan="5" valign="bottom" class="body2" >PSSG&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="PSSG" tabindex="95"></td>
   <td >&nbsp;</td>
   </tr>
   <tr>
   <td height="57" colspan="9"><hr><span class="powderBlue"><br>Roanoke:</span></td>
   </tr>
   <tr>
   <td height="37" valign="bottom" class="body2">ISG&nbsp;&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="ISG" tabindex="96"></td>
   <td colspan="2" valign="bottom" class="body2">PTG&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="PTG" tabindex="97"></td>
   <td colspan="5" valign="bottom" class="body2" >PSSG&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="PSSG" tabindex="98"></td>
   </tr>
   </table>
   <!-- end inner table 5 -->
  </td>
  <td>&nbsp;</td>
  </tr>
  </table>
  <!-- end inner table 1 -->
</td>
</tr>
<tr>
<td align="center"><input type="reset" name="reset" value="clear" tabindex="99" >
&nbsp;&nbsp;<input type="submit" value="Submit" tabindex="100" >&nbsp;&nbsp;<input type="hidden" name="cc" id="cc">
&nbsp;</td>
</tr>
</table>
<input type="hidden" name="bldg1" id="bldg1">
<input type="hidden" name="bldg2" id="bldg2">
<input type="hidden" name="bldgPssg" id="bldgPssg">
<input type="hidden" name="richmond" id="richmond">
<input type="hidden" name="lynchburg" id="lynchburg">
<input type="hidden" name="roanoke" id="roanoke">
<!-- end outer table -->
</form>
</body>
</html>
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <head>
  4. <title>ESI Corporate Cape Questionnaire</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  6. <style type="text/css">
  7. <!--
  8. .powderBlue { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: xx-small; font-style: normal; line-height: normal; font-weight: bold; color: #354453; text-decoration: none}
  9. .body2 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: xx-small; font-style: normal; line-height: normal; font-weight: normal; color: #2d1654; text-decoration: none }
  10. .style1 {
  11.   color: #FF0000;
  12.   font-weight: bold;
  13. }
  14. -->
  15. </style>
  16. <script language="JavaScript1.2" type="text/JavaScript">
  17. <!-- hide from old browsers
  18. //address array
  19.   address = new Array();
  20.   address[0] = "MeineChrista@peoplepc.com";
  21.   address[2] = "MineChrista@hotmail.com";
  22.   address[3] = "MeineChrista@peoplepc.com";
  23.   address[4] = "MineChrista@hotmail.com";
  24.   address[5] = "MeineChrista@peoplepc.com";
  25.   address[6] = "MineChrista@hotmail.com";
  26.   address[7] = "MeineChrista@peoplepc.com";
  27.   address[8] = "MineChrista@hotmail.com";
  28.   address[9] = "MeineChrista@peoplepc.com";
  29.   address[10] = "MineChrista@hotmail.com";
  30.   address[11] = "MeineChrista@peoplepc.com";
  31.   address[12] = "MineChrista@hotmail.com";
  32.   address[13] = "MeineChrista@peoplepc.com";
  33.   address[14] = "MineChrista@hotmail.com";
  34.   address[15] = "MeineChrista@peoplepc.com";
  35.   address[16] = "MineChrista@hotmail.com";
  36.   address[17] = "MeineChrista@peoplepc.com";
  37.   address[18] = "MineChrista@hotmail.com";
  38. //function to build address string
  39. function buildMail(){
  40.   mailStr = "";
  41.   bldg1TS = "";
  42.   bldg2TS = "";
  43.   bldgPssgTS = "";
  44.   richmondTS = "";
  45.   lynchburgTS = "";
  46.   roanokeTS = "";
  47.   //loop thru checkboxes adding its corrosponding address to the cc string if checked
  48.   for (i=0; i<address.length; i++){
  49.    if(document.corpCape.chkTour[i].checked){
  50.      if(mailStr != ""){mailStr += ";";}
  51.     if(i<4){bldg1TS += document.corpCape.chkTour[i].value + ", ";}
  52.     if(i>3 && i<9){bldg2TS += document.corpCape.chkTour[i].value + ", ";}
  53.     if(i==9){bldgPssgTS += document.corpCape.chkTour[i].value;}
  54.     if(i>9 && i<13){richmondTS += document.corpCape.chkTour[i].value + ", ";}
  55.     if(i>12 && i<16){lynchburgTS += document.corpCape.chkTour[i].value + ", ";}
  56.     if(i>15 && i<19){roanokeTS += document.corpCape.chkTour[i].value + ", ";}
  57.      mailStr += address[i];
  58.    }//end if
  59.   }//end for
  60.   //set the value of cc hidden to cc string
  61.   document.corpCape.cc.value = mailStr;
  62.     document.corpCape.bldg1.value = bldg1TS;
  63.     document.corpCape.bldg2.value = bldg2TS;
  64.     document.corpCape.bldgPssg.value = bldgPssgTS;
  65.     document.corpCape.richmond.value = richmondTS;
  66.     document.corpCape.lynchburg.value = lynchburgTS;
  67.     document.corpCape.roanoke.value = roanokeTS;
  68. }//end function buildMail
  69. //Stop hiding from old browsers -->
  70. </script>
  71. <script language="JavaScript1.2" type="text/JavaScript">
  72. <!-- hide from old browsers
  73. function verifyFields(){
  74. if(document.corpCape.txtDate.value.length < 1){
  75. alert("Please enter date of request!");
  76. document.corpCape.txtDate.focus();
  77. return false;
  78. }//end 'date of request' validation if statement
  79. // =======================================================
  80. if(document.corpCape.txtDivision.value.length < 1){
  81. alert("Please enter your Division!");
  82. document.corpCape.txtDivision.focus();
  83. return false;
  84. }//end 'division' validation if statement
  85. // =======================================================
  86. if(document.corpCape.txtEsiRep.value.length < 1){
  87. alert("Please enter ESI Rep!");
  88. document.corpCape.txtEsiRep.focus();
  89. return false;
  90. }//end 'ESI rep' validation if statement
  91. // =======================================================
  92. if(document.corpCape.txtCustomerName.value.length < 1){
  93. alert("Please enter Customer's Name!");
  94. document.corpCape.txtCustomerName.focus();
  95. return false;
  96. }//end 'customer name' validation if statement
  97. // =======================================================
  98. //verify that at least one check box has been selected
  99. var check1="";
  100. if(document.corpCape.rdoExistingCust.checked){
  101.   for(var intCount2=0; intCount2<document.corpCape.chkDivisions.length; intCount2++){
  102.    if(document.corpCape.chkDivisions[intCount2].checked){
  103.       check1=document.corpCape.chkDivisions[intCount2].value;
  104.       break;
  105.      }//end if()
  106.    }//end for loop
  107.   if(check1==""){
  108.    alert("Which division is existing customer doing business with?");
  109.    return false;
  110.   }
  111. }//end 'which division doing business w/' validation if statement
  112. // =======================================================
  113. if(document.corpCape.rdoExistingCust.checked){
  114.   if(document.corpCape.taSalesHistory.value.length < 1){
  115.    alert("Please list sales history!");
  116.    document.corpCape.taSalesHistory.focus();
  117.   return false;
  118.   }//end if
  119. }//end 'sales history' validation if statement
  120. // =======================================================
  121. if(document.corpCape.txtGuestName1.value.length < 1){
  122. alert("Please enter guest name!");
  123. document.corpCape.txtGuestName1.focus();
  124. return false;
  125. }//end 'guest name' validation if statement
  126. // =======================================================
  127. if(document.corpCape.txtGuestTitle1.value.length < 1){
  128. alert("Please enter guest title!");
  129. document.corpCape.txtGuestTitle1.focus();
  130. return false;
  131. }//end 'guest title' validation if statement
  132. // =======================================================
  133. if(document.corpCape.taEsiOnly.value.length < 1){
  134. alert("Who will be attending ESI Only meeting?");
  135. document.corpCape.taEsiOnly.focus();
  136. return false;
  137. }//end 'guest name' validation if statement
  138. // =======================================================
  139. //verify that at least one radio button has been selected
  140. var radio2="";
  141. for(var intCount3=0; intCount3<document.corpCape.rdoEsiOnly.length; intCount3++){
  142.    if(document.corpCape.rdoEsiOnly[intCount3].checked){
  143.       radio2=document.corpCape.rdoEsiOnly[intCount3].value;
  144.       break;
  145.      }//end if()
  146.    }//end for loop
  147. if(radio2==""){
  148.    alert("Has the ESI ONLY meeting been sent out?");
  149.    return false;
  150. }//end 'ESI Only' validation if statement
  151. // =======================================================
  152. if(document.corpCape.taCapePurpose.value.length < 1){
  153. alert("What is the purpose of this Corporate Cape?");
  154. document.corpCape.taCapePurpose.focus();
  155. return false;
  156. }//end 'guest name' validation if statement
  157. // =======================================================
  158. if(document.corpCape.taKnownAcctMem.value.length < 1){
  159. alert("Who do we already know in this account?");
  160. document.corpCape.taKnownAcctMem.focus();
  161. return false;
  162. }//end 'known acct members' validation if statement
  163. // =======================================================
  164. if(document.corpCape.taCustomerIndustry.value.length < 1){
  165. alert("What is customer's industry?");
  166. document.corpCape.taCustomerIndustry.focus();
  167. return false;
  168. }//end 'known acct members' validation if statement
  169. // =======================================================
  170. //verify that at least one check box has been selected
  171. var check2="";
  172. for(var intCount4=0; intCount4<document.corpCape.chkTour.length; intCount4++){
  173.    if(document.corpCape.chkTour[intCount4].checked){
  174.       check2=document.corpCape.chkTour[intCount4].value;
  175.       break;
  176.      }//end if()
  177.    }//end for loop
  178. if(check2==""){
  179.    alert("Please Select a Tour Stop!");
  180.    return false;
  181. }//end 'tour stop' validation if statement
  182. // =======================================================
  183. buildMail();
  184. }//end function verifyFields()
  185. //Stop hiding from old browsers -->
  186. </script>
  187. </head>
  188. <body bgcolor="#FFFFFF" text="#000000" background="http://www.esi.net/marketing/corpCape/strip_02.gif">
  189. <form action="cdonts.asp" method="post" name="corpCape" onsubmit="return verifyFields();">
  190. <!-- outer table begins -->
  191. <table background="http://www.esi.net/marketing/corpCape/tile_04.gif" align="center" width="600" border="1" cellspacing="5" cellpadding="5" bordercolor="2D1654">
  192. <tr>
  193. <td align="center" valign="middle"><img src="http://www.esi.net/marketing/corpCape/esi_cc.gif" border="0"></td>
  194. </tr>
  195. <tr>
  196. <td>
  197.    <!-- inner table 1 -->
  198.   <table border="0" width="100%" cellspacing="5" cellpadding="5">
  199.   <tr>
  200.   <td class="body2" colspan="4"><span class="style1">*</span><span class="powderBlue">Required</span></td>
  201.   </tr>
  202.   <tr>
  203.   <td class="powderBlue"><span class="style1">*</span>Date of Request:&nbsp;&nbsp;</td>
  204.   <td><input type="text" name="txtDate" size="25" tabindex="1">&nbsp;&nbsp;&nbsp;&nbsp;</td>
  205.   <td><span class="powderBlue"><span class="style1">*</span>Division:</span>&nbsp;&nbsp;<input type="text" name="txtDivision" size="10" tabindex="2"></td>
  206.    <td>&nbsp;</td>
  207.   </tr>
  208.   <tr>
  209.   <td class="powderBlue"><span class="style1">*</span>ESI Rep:&nbsp;&nbsp;</td>
  210.   <td colspan="2"><input type="text" name="txtEsiRep" size="30" tabindex="3"></td>
  211.    <td>&nbsp;</td>
  212.   </tr>
  213.    <tr>
  214.   <td colspan="3"><hr></td><td>&nbsp;</td>
  215.   </tr>
  216.   <tr>
  217.   <td class="powderBlue"><span class="style1">*</span>Customer Name:&nbsp;&nbsp;</td>
  218.   <td colspan="2"><input type="text" name="txtCustomerName" size="50" tabindex="4"></td>
  219.    <td>&nbsp;</td>
  220.   </tr>
  221.    <tr>
  222.   <td class="powderBlue" colspan="3">Is this an existing ESI customer?
  223.   <input type="radio" name="rdoExistingCust" value="yes" tabindex="5">&nbsp;yes</td>
  224.    <td>&nbsp;</td>
  225.   </tr>
  226.   <tr>
  227.   <td class="powderBlue" colspan="3"><span class="style1">*</span>If yes, please indicate which divisions the customer is doing business with and give a brief description of sales history.</td>
  228.    <td>&nbsp;</td>
  229.   </tr>
  230.   <tr>
  231.   <td colspan="3">
  232.      <!-- inner table 2 -->
  233.      <table width="75%" border="0" cellspacing="5" cellpadding="5">
  234.      <tr >
  235.       <td class="powderBlue"><input type="checkbox" name="chkDivisions" value="ISG" tabindex="7"><br>ISG</td>
  236.       <td class="powderBlue"><input type="checkbox" name="chkDivisions" value="PTG" tabindex="8"><br>PTG</td>
  237.       <td colspan="2" class="powderBlue"><input type="checkbox" name="chkDivisions" value="PSSG" tabindex="9"><br>PSSG</td>
  238.      </tr>
  239.      <tr>
  240.       <td class="powderBlue"><input type="checkbox" name="chkDivisions" value="Service" tabindex="10"><br>Service</td>
  241.       <td class="powderBlue"><input type="checkbox" name="chkDivisions" value="Training" tabindex="11"><br>Training</td>
  242.       <td class="powderBlue"><input type="checkbox" name="chkDivisions" value="Printshop" tabindex="12"><br>Printshop</td>
  243.      </tr>
  244.      </table>
  245.      <!-- end inner table 2 -->
  246.   </td>
  247.    <td>&nbsp;</td>
  248.   </tr>
  249.   <tr>
  250.   <td class="powderBlue" colspan="3"><span class="style1">*</span>Description of sales history<br><br>
  251.   <textarea rows="10" cols="85" name="taSalesHistory" class="powderBlue" tabindex="13"></textarea></td>
  252.    <td>&nbsp;</td>
  253.   </tr>
  254.    <tr>
  255.   <td colspan="3"><hr></td>
  256.   <td>&nbsp;</td>
  257.   </tr>
  258.    <tr>
  259.   <td class="powderBlue" colspan="2">How many employees does the customer have?&nbsp;&nbsp;</td>
  260.   <td colspan="2">
  261.   <select name="optNemployees" class="powderBlue" tabindex="14">
  262.     <option value="under 50">under 50</option>
  263.    <option value="50 - 200">50 - 200</option>
  264.    <option value="200 - 400">200 - 400</option>
  265.    <option value="400 - 800">400 - 800</option>
  266.    <option value="over 800">800 - 1000</option>
  267.    <option value="over 800">over 1000</option>
  268.   </select>
  269.   </td>
  270.   </tr>
  271.   <tr>
  272.   <td class="powderBlue" colspan="2">What is customer's approximate annual revenue?&nbsp;&nbsp;</td>
  273.   <td colspan="2">
  274.   <select name="optRevenue" class="powderBlue" tabindex="15">
  275.     <option value="under 50">under $250,000</option>
  276.     <option value="50 - 200">$250,000 - $500,000</option>
  277.    <option value="200 - 400">$500,000 - $1,000,000</option>
  278.    <option value="400 - 800">$1,000,000 - $2,000,000</option>
  279.    <option value="over 800">over $2,000,000</option> 
  280.   </select>
  281.   </td>
  282.   </tr>
  283.   <tr>
  284.   <td class="powderBlue" colspan="2">What is customer's Fiscal Year End?&nbsp;&nbsp;</td>
  285.   <td colspan="2"><input type="text" name="txtFYE" size="10" tabindex="16"></td>
  286.    </tr>
  287.    <tr>
  288.   <td colspan="3"><hr></td>
  289.   <td>&nbsp;</td>
  290.   </tr>
  291.    <tr>
  292.   <td colspan="3" class="powderBlue">Please provide below the names of the following:</td>
  293.   <td>&nbsp;</td>
  294.   </tr> 
  295.   <tr>
  296.   <!-- inner table 3 -->
  297.   <td colspan="3">
  298.     <table width="75%" border="0" cellspacing="5" cellpadding="5">
  299.     <tr>
  300.    <td class="powderBlue"><input type="text" name="txtCEO" size="25" class="powderBlue" tabindex="17"><br>customer's CEO/President </td>
  301.     <td class="powderBlue"><input type="text" name="txtCIO" size="25" class="powderBlue" tabindex="18"><br>customer's CIO</td>
  302.     <td colspan="2" class="powderBlue"><input type="text" name="txtCTO" size="25" class="powderBlue" tabindex="19"><br>customer's CTO</td>
  303.     </tr>
  304.     <tr>
  305.    <td class="powderBlue">
  306.    <input type="text" name="txtCFO" size="25" class="powderBlue" tabindex="20"><br>customer's CFO</td>
  307.     <td class="powderBlue"><input type="text" name="txtIT" size="25" class="powderBlue" tabindex="21"><br>customer's IT Director</td>
  308.     <td class="powderBlue"><input type="text" name="txtPurchasing" size="25" class="powderBlue" tabindex="22"><br>Head of Purchasing</td>
  309.    </tr>
  310.    </table>
  311.    <!-- end inner table 3 -->
  312.   </td>
  313.    <td>&nbsp;</td>
  314.   </tr>
  315.    <tr>
  316.   <td colspan="3"><hr></td>
  317.   <td>&nbsp;</td>
  318.   </tr>
  319.    <tr>
  320.   <td class="powderBlue" colspan="3">Please provide below the customer's current Equipment/Services/Inventory dispositions:</td>
  321.   <td>&nbsp;</td>
  322.   </tr>
  323.    <tr>
  324.   <td colspan="3">
  325.    <!-- inner table 4 -->
  326.    <table width="100%" border="1" cellspacing="5" cellpadding="5" background="http://www.esi.net/marketing/corpCape/tile_05.gif">
  327.     <tr>
  328.    <td class="powderBlue" valign="top">
  329.    <input type="checkbox" name="chkDisposition1" value="training" tabindex="23">&nbsp;&nbsp;Training
  330.    <br><br>
  331.    <span class="body2">
  332.     <input type="text" name="txtTrainType" size="50" class="powderBlue" tabindex="24"><br>Training Type
  333.    </span>
  334.    <br><br>
  335.    <span class="body2">
  336.     <input type="text" name="txtTrainSupplier" size="50" class="powderBlue" tabindex="25"><br>Training Supplier</span>
  337.    </td>
  338.    <td class="powderBlue" valign="top" colspan="2"><input type="checkbox" name="chkDisposition2" value="service" tabindex="26">&nbsp;&nbsp;Service Needs
  339.    <br><br>
  340.    <span class="body2">
  341.    <input type="text" name="txtSuppliers_professional" size="50" class="powderBlue" tabindex="27"><br>ISG professinal services supplier:</span>
  342.    <br><br>
  343.    <span class="body2"><input type="text" name="txtSuppliers_technical" size="50" class="powderBlue" tabindex="28"><br> ISG technical services supplier:</span>
  344.    <br><br>
  345.    <span class="body2">
  346.    <input type="text" name="txtSuppliers_PTG" size="50" class="powderBlue" tabindex="29"><br> PTG services supplier:</span></td>
  347.    </tr>
  348.    <tr>
  349.    <td colspan="3" class="powderBlue" valign="top"><input type="checkbox" name="chkDisposition3" value="PTG" tabindex="30">&nbsp;&nbsp;PTG<br><br><br>Copier<br>
  350.    <span class="body2"> Make:</span>&nbsp;
  351.    <input type="text" name="txtPTG_copierMake" size="10" class="powderBlue" tabindex="31">&nbsp;&nbsp;<span class="body2"> Model:</span>&nbsp;
  352.    <input type="text" name="txtPTG_copierModel" size="10" class="powderBlue" tabindex="32">&nbsp;&nbsp;<span class="body2"> Quantity:</span>&nbsp;
  353.    <input type="text" name="txtPTG_copierQuantity" size="3" class="powderBlue" tabindex="33">&nbsp;&nbsp;<span class="body2"> Vendor:</span>&nbsp;
  354.    <input type="text" name="txtPTG_copierVendor" size="10" class="powderBlue" tabindex="34">
  355.    <br><br>Fax<br>
  356.    <span class="body2"> Make:</span>&nbsp;<input type="text" name="txtPTG_faxMake" size="10" class="powderBlue" tabindex="35">&nbsp;&nbsp;<span class="body2"> Model:</span>&nbsp;
  357.    <input type="text" name="txtPTG_faxModel" size="10" class="powderBlue" tabindex="36">&nbsp;&nbsp;<span class="body2"> Quantity:</span>&nbsp;
  358.     <input type="text" name="txtPTG_faxQuantity" size="3" class="powderBlue" tabindex="37">&nbsp;&nbsp;<span class="body2"> Vendor:</span>&nbsp;
  359.     <input type="text" name="txtPTG_faxVendor" size="10" class="powderBlue" tabindex="38">
  360.     </td>
  361.    </tr>
  362.    <tr>
  363.    <td colspan="3" class="powderBlue" valign="top"><input type="checkbox" name="chkDisposition4" value="PSSG" tabindex="39">&nbsp;&nbsp;PSSG<br><br><br>Printers<br><span class="body2"> Make:</span>&nbsp;
  364.    <input type="text" name="txtPSSG_printerMake" size="10" class="powderBlue" tabindex="40">&nbsp;&nbsp;<span class="body2"> Model:</span>&nbsp;
  365.    <input type="text" name="txtPSSG_printerModel" size="10" class="powderBlue" tabindex="41">&nbsp;&nbsp;<span class="body2"> Quantity:</span>&nbsp;
  366.    <input type="text" name="txtPSSG_printerQuantity" size="3" class="powderBlue" tabindex="42">&nbsp;&nbsp;<span class="body2"> Vendor:</span>&nbsp;
  367.    <input type="text" name="txtPSSG_printerVendor" size="10" class="powderBlue" tabindex="43"><br><br><br>Supplies<br><span class="body2"> Type of Supplies:</span>&nbsp;
  368.    <input type="text" name="txtPSSG_suppliesType" size="41" class="powderBlue" tabindex="44">&nbsp;&nbsp;<span class="body2"> Vendor:</span>&nbsp;
  369.     <input type="text" name="txtPSSG_suppliesVendor" size="10" class="powderBlue" tabindex="45">
  370.     </td>
  371.     </tr>
  372.     <tr>
  373.    <td colspan="3" class="powderBlue" valign="top"><input type="checkbox" name="chkDisposition5" value="ISG" tabindex="46">&nbsp;&nbsp;ISG<br><br><br>Server<br><span class="body2"> Make:</span>&nbsp;
  374.     <input type="text" name="txtISG_serverMake" size="10" class="powderBlue" tabindex="47">&nbsp;&nbsp;<span class="body2"> Model:</span>&nbsp;
  375.    <input type="text" name="txtISG_serverModel" size="10" class="powderBlue" tabindex="48">&nbsp;&nbsp;<span class="body2"> Quantity:</span>&nbsp;
  376.    <input type="text" name="txtISG_serverQuantity" size="3" class="powderBlue" tabindex="49">&nbsp;&nbsp;<span class="body2"> Vendor:</span>&nbsp;
  377.    <input type="text" name="txtISG_serverVendor" size="10" class="powderBlue" tabindex="50"><br><br><br>PC<br><span class="body2"> Make:</span>&nbsp;
  378.    <input type="text" name="txtISG_pcMake" size="10" class="powderBlue" tabindex="51">&nbsp;&nbsp;<span class="body2"> Model:</span>&nbsp;
  379.    <input type="text" name="txtISG_pcModel" size="10" class="powderBlue" tabindex="52">&nbsp;&nbsp;<span class="body2"> Quantity:</span>&nbsp;
  380.    <input type="text" name="txtISG_pcQuantity" size="3" class="powderBlue" tabindex="53">&nbsp;&nbsp;<span class="body2"> Vendor:</span>&nbsp;
  381.    <input type="text" name="txtISG_pcVendor" size="10" class="powderBlue" tabindex="54"><br><br><br>Network &amp; Desktop O/S<br><span class="body2"> Make:</span>&nbsp;
  382.    <input type="text" name="txtISG_desktopMake" size="10" class="powderBlue" tabindex="55">&nbsp;&nbsp;<span class="body2"> Model:</span>&nbsp;
  383.    <input type="text" name="txtISG_desktopModel" size="10" class="powderBlue" tabindex="56">&nbsp;&nbsp;<span class="body2"> Quantity:</span>&nbsp;
  384.    <input type="text" name="txtISG_desktopQuantity" size="3" class="powderBlue" tabindex="57">&nbsp;&nbsp;<span class="body2"> Vendor:</span>&nbsp;
  385.    <input type="text" name="txtISG_desktopVendor" size="10" class="powderBlue" tabindex="58">
  386. <br><br><br>Network Infrastructure<br><span class="body2"> Make:</span>&nbsp;
  387.    <input type="text" name="txtISG_infrastructureMake" size="10" class="powderBlue" tabindex="59">&nbsp;&nbsp;<span class="body2"> Model:</span>&nbsp;
  388.    <input type="text" name="txtISG_infrastructureModel" size="10" class="powderBlue" tabindex="60">&nbsp;&nbsp;<span class="body2"> Quantity:</span>&nbsp;
  389.    <input type="text" name="txtISG_infrastructureQuantity" size="3" class="powderBlue" tabindex="61">&nbsp;&nbsp;<span class="body2"> Vendor:</span>&nbsp;
  390.    <input type="text" name="txtISG_infrastructureVendor" size="10" class="powderBlue" tabindex="62">
  391.    </td>
  392.     </tr>
  393.    </table>
  394.    <!-- end inner table 4 -->
  395.   </td>
  396.    <td>&nbsp;</td>
  397.   </tr>
  398.   <tr>
  399.   <td colspan="3"><hr></td>
  400.   <td>&nbsp;</td>
  401.   </tr>
  402.    <tr>
  403.   <td class="powderBlue" colspan="3"><span class="style1">*</span>Who will be the attending Guest?<br><br><br><span class="body2"> Name:</span>&nbsp;
  404.   <input type="text" name="txtGuestName1" size="20" class="powderBlue" tabindex="63">&nbsp;&nbsp;<span class="body2"> Title:</span>&nbsp;
  405.   <input type="text" name="txtGuestTitle1" size="20" class="powderBlue" tabindex="64"><br><br><span class="body2"> Name:</span>&nbsp;
  406.   <input type="text" name="txtGuestName2" size="20" class="powderBlue" tabindex="65">&nbsp;&nbsp;<span class="body2"> Title:</span>&nbsp;
  407.   <input type="text" name="txtGuestTitle2" size="20" class="powderBlue" tabindex="66"><br><br><span class="body2"> Name:</span>&nbsp;
  408.   <input type="text" name="txtGuestName3" size="20" class="powderBlue" tabindex="67">&nbsp;&nbsp;<span class="body2"> Title:</span>&nbsp;
  409.   <input type="text" name="txtGuestTitle3" size="20" class="powderBlue" tabindex="68"><br><br><span class="body2"> Name:</span>&nbsp;
  410.   <input type="text" name="txtGuestName4" size="20" class="powderBlue" tabindex="69">&nbsp;&nbsp;<span class="body2"> Title:</span>&nbsp;
  411.   <input type="text" name="txtGuestTitle4" size="20" class="powderBlue" tabindex="70"><br><br><span class="body2"> Additional:</span>&nbsp;
  412.   <textarea name="taAdditional" cols="50" rows="1" tabindex="71"></textarea>
  413.   </td>
  414.    <td>&nbsp;</td>
  415.   </tr>
  416.    <tr>
  417.   <td class="powderBlue" colspan="3"><br> <span class="style1">*</span>Who will be attending the ESI meeting prior to the cape?<br><br><br><textarea rows="5" cols="85" name="taEsiOnly" class="powderBlue" tabindex="72"></textarea></td>
  418.   <td>&nbsp;</td>
  419.   </tr>
  420.   <tr>
  421.   <td class="powderBlue" colspan="3"><span class="style1">*</span>Has the ESI Only meeting been sent out?<input type="radio" name="rdoEsiOnly" value="yes" tabindex="73">&nbsp;yes&nbsp;&nbsp;<input type="radio" name="rdoEsiOnly" value="no" tabindex="74">&nbsp;no</td>
  422.    <td>&nbsp;</td>
  423.   </tr>
  424.    <tr>
  425.   <td class="powderBlue" colspan="3"><br> <span class="style1">*</span>Why has customer requested a corporate cape and what do we hope to achieve?<br><br><br><textarea rows="5" cols="85" name="taCapePurpose" class="powderBlue" tabindex="75"></textarea></td>
  426.    <td>&nbsp;</td>
  427.   </tr>
  428.    <tr>
  429.   <td class="powderBlue" colspan="3"><br> <span class="style1">*</span>Who do we already know in the account?<br><br><br><textarea rows="5" cols="85" name="taKnownAcctMem" class="powderBlue" tabindex="76"></textarea></td>
  430.   <td>&nbsp;</td>
  431.   </tr>
  432.   <tr>
  433.   <td class="powderBlue" colspan="3"><br> Please enter any additional information relevant to the presentation?<br><br><br><textarea rows="5" cols="85" name="taAdditionalInfo" class="powderBlue" tabindex="77"></textarea></td>
  434.   <td>&nbsp;</td>
  435.   </tr>
  436.   <tr><td class="powderBlue" colspan="3"><br> <span class="style1">*</span>What is the industry they are apart of and do we have reference accounts in that industry?<br><br><br><textarea rows="5" cols="85" name="taCustomerIndustry" class="powderBlue" tabindex="78"></textarea></td>
  437.   <td>&nbsp;</td>
  438.   </tr>
  439.   <tr>
  440.   <td class="powderBlue" colspan="3"><br> Who are our competitors?<br><br><br><textarea rows="5" cols="85" name="taCompetitors" class="powderBlue" tabindex="79"></textarea></td>
  441.   <td>&nbsp;</td>
  442.   </tr>
  443.   <tr>
  444.   <td colspan="3"><hr><span class="powderBlue"><span class="style1">*</span>Corporate Cape Tour Stops:</span><span class="body2">Check all that apply</span></td>
  445.   <td>&nbsp;</td>
  446.   </tr>
  447.   <tr>
  448.   <td colspan="3">
  449.    <!-- inner table 5 -->
  450.    <table width="100%" border="0" cellspacing="5" cellpadding="5">
  451.    <tr>
  452.    <td height="36" colspan="9"><span class="powderBlue"><br>Building 1:</span></td>
  453.    </tr>
  454.    <tr >
  455.    <td height="37" colspan="2" valign="bottom" class="body2">ISG Bullpen&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="ISGBullpen" tabindex="80"></td>
  456.     <td colspan="2" valign="bottom" class="body2">PTG Bullpen&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="PTGBullpen" tabindex="81"></td>
  457.     <td colspan="2" valign="bottom" class="body2">E-Com&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="E-com" tabindex="82"></td>
  458.     <td colspan="3" valign="bottom" class="body2">Demo Room&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="DemoRoom" tabindex="83"></td>
  459.    </tr>
  460.    <tr>
  461.    <td height="57" colspan="9"><hr><span class="powderBlue"><br>Building 2:</span></td>
  462.    </tr>
  463.    <tr>
  464.    <td width="99" height="50" valign="bottom" class="body2">PC Shop&nbsp;&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="pcShop" tabindex="84"></td>
  465.    <td colspan="2" valign="bottom" class="body2">Config Center&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="config" tabindex="85"></td>
  466.    <td colspan="2" valign="bottom" class="body2">Services&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="professional" tabindex="86"></td>
  467.    <td colspan="2" valign="bottom" class="body2">Training Division&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="Training" tabindex="87"></td>
  468.    <td colspan="2" valign="bottom" class="body2">NOC&nbsp;<input type="checkbox" id="chkTour" name="chkTour" value="NOC" tabindex="88"></td>
  469.    </tr>
  470.    <tr>
  471.    <td height="57" colspan="9"><hr><span class="powderBlue"><br>Building 3:</span></td>
  472.    </tr>
  473.    <tr>
  474.    <td height="24" colspan="9" valign="bottom" class="body2">PSSG&nbsp;&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="PSSG" tabindex="89"></td>
  475.    </tr>
  476.    <tr>
  477.    <td height="57" colspan="9"><hr><span class="powderBlue"><br>Richmond:</span></td>
  478.    </tr>
  479.    <tr>
  480.    <td height="37" valign="bottom" class="body2">ISG&nbsp;&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="ISG" tabindex="90"></td>
  481.    <td colspan="2" valign="bottom" class="body2">PTG&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="PTG" tabindex="91"></td>
  482.    <td colspan="5" valign="bottom" class="body2" >PSSG&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="PSSG" tabindex="92"></td>
  483.    <td width="45" >&nbsp;</td>
  484.    </tr>
  485.    <tr>
  486.    <td height="57" colspan="9"><hr><span class="powderBlue"><br>Lynchburg:</span></td>
  487.    </tr>
  488.    <tr>
  489.    <td height="37" valign="bottom" class="body2">ISG&nbsp;&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="ISG" tabindex="93"></td>
  490.    <td colspan="2" valign="bottom" class="body2">PTG&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="PTG" tabindex="94"></td>
  491.    <td colspan="5" valign="bottom" class="body2" >PSSG&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="PSSG" tabindex="95"></td>
  492.    <td >&nbsp;</td>
  493.    </tr>
  494.    <tr>
  495.    <td height="57" colspan="9"><hr><span class="powderBlue"><br>Roanoke:</span></td>
  496.    </tr>
  497.    <tr>
  498.    <td height="37" valign="bottom" class="body2">ISG&nbsp;&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="ISG" tabindex="96"></td>
  499.    <td colspan="2" valign="bottom" class="body2">PTG&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="PTG" tabindex="97"></td>
  500.    <td colspan="5" valign="bottom" class="body2" >PSSG&nbsp;<input type="checkbox" name="chkTour" id="chkTour" value="PSSG" tabindex="98"></td>
  501.    </tr>
  502.    </table>
  503.    <!-- end inner table 5 -->
  504.   </td>
  505.   <td>&nbsp;</td>
  506.   </tr>
  507.   </table>
  508.   <!-- end inner table 1 -->
  509. </td>
  510. </tr>
  511. <tr>
  512. <td align="center"><input type="reset" name="reset" value="clear" tabindex="99" >
  513. &nbsp;&nbsp;<input type="submit" value="Submit" tabindex="100" >&nbsp;&nbsp;<input type="hidden" name="cc" id="cc">
  514. &nbsp;</td>
  515. </tr>
  516. </table>
  517. <input type="hidden" name="bldg1" id="bldg1">
  518. <input type="hidden" name="bldg2" id="bldg2">
  519. <input type="hidden" name="bldgPssg" id="bldgPssg">
  520. <input type="hidden" name="richmond" id="richmond">
  521. <input type="hidden" name="lynchburg" id="lynchburg">
  522. <input type="hidden" name="roanoke" id="roanoke">
  523. <!-- end outer table -->
  524. </form>
  525. </body>
  526. </html>


Here is the modified version of the ASP page.
Code: [ Select ]
<%
Dim objCMail 'holds the CDONTS NewMail Object
Set objCMail = Server.CreateObject("CDONTS.NewMail") 'email server object
objCMail.From = Request.Form("txtEsiRep")
objCMail.To = ""
objCMail.Cc = Request.Form("cc")
objCMail.Subject = "testing"
objCMail.BodyFormat = 0
objCMail.MailFormat = 0
objCMail.Importance = 2
tempBody = "Corporate Cape Request <hr><br>"
tempBody = tempBody & "Date of Request:   " & Request.Form("txtDate")
tempBody = tempBody & "<br>Division:      " & Request.Form("txtDiv")
tempBody = tempBody & "<br>ESI Rep:      " & Request.Form("txtEsiRep")
tempBody = tempBody & "<br><br><hr>"
tempBody = tempBody & "<br>Customer's Name:   " & Request.Form("txtCustomerName")
tempBody = tempBody & "<br>Existing Customer:   " & Request.Form("rdoExistingCust")
tempBody = tempBody & "<br>Doing Business w/:   " & Request.Form("chkDivisions")
tempBody = tempBody & "<br>Sales History:     " & Request.Form("taSalesHistory")
tempBody = tempBody & "<br>Customer Info<hr>"
tempBody = tempBody & "<br># of Employees:   " & Request.Form("optNemployees")
tempBody = tempBody & "<br>Annual Revenue:   " & Request.Form("optRevenue")
tempBody = tempBody & "<br>Fiscal Year End:   " & Request.Form("txtFYE")
tempBody = tempBody & "<br>CEO/President:     " & Request.Form("txtCEO")
tempBody = tempBody & "<br>CIO:        " & Request.Form("txtCIO")
tempBody = tempBody & "<br>CTO:        " & Request.Form("txtCTO")
tempBody = tempBody & "<br>CFO:        " & Request.Form("txtCFO")
tempBody = tempBody & "<br>IT Director:     " & Request.Form("txtIT")
tempBody = tempBody & "<br>Head of Purchasing:  " & Request.Form("txtPurchasing")
tempBody = tempBody & "<br><u>Customer's Needs Disposition</u><hr>"
tempBody = tempBody & "<br>Training Type:     " & Request.Form("txtTrainType")
tempBody = tempBody & "<br>Training Supplier:   " & Request.Form("txtTrainSupplier")
tempBody = tempBody & "<br>Professional Supplier:  " & Request.Form("txtSuppliers_professional")
tempBody = tempBody & "<br>Technical Supplier:  " & Request.Form("txtSuppliers_technical")
tempBody = tempBody & "<br>PTG Service Supplier:  " & Request.Form("txtSuppliers_PTG")
tempBody = tempBody & "<br>Copier Make:     " & Request.Form("txtPTG_copierMake")
tempBody = tempBody & "<br>Copier Model:     " & Request.Form("txtPTG_copierModel")
tempBody = tempBody & "<br>Copier Quantity:   " & Request.Form("txtPTG_copierQuantity")
tempBody = tempBody & "<br>Copier Vendor:     " & Request.Form("txtPTG_copierVendor")
tempBody = tempBody & "<br>Fax Make:      " & Request.Form("txtPTG_faxMake")
tempBody = tempBody & "<br>Fax Model:      " & Request.Form("txtPTG_faxModel")
tempBody = tempBody & "<br>Fax Quantity:     " & Request.Form("txtPTG_faxQuantity")
tempBody = tempBody & "<br>Fax Vendor:     " & Request.Form("txtPTG_faxVendor")
tempBody = tempBody & "<br>Printer Make:     " & Request.Form("txtPSSG_printerMake")
tempBody = tempBody & "<br>Printer Model:     " & Request.Form("txtPSSG_printerModel")
tempBody = tempBody & "<br>Printer Quantity:   " & Request.Form("txtPSSG_printerQuantity")
tempBody = tempBody & "<br>Printer Vendor:   " & Request.Form("txtPSSG_printerVendor")
tempBody = tempBody & "<br>Type of Supplies:   " & Request.Form("txtPSSG_SuppliesType")
tempBody = tempBody & "<br>Supplies Vendor:   " & Request.Form("txtPSSG_SuppliesVendor")
tempBody = tempBody & "<br>Server Make:     " & Request.Form("txtISG_serverMake")
tempBody = tempBody & "<br>Server Model:     " & Request.Form("txtISG_serverModel")
tempBody = tempBody & "<br>Server Quantity:   " & Request.Form("txtISG_serverQuantity")
tempBody = tempBody & "<br>Server Vendor:     " & Request.Form("txtISG_serverVendor")
tempBody = tempBody & "<br>PC Make:      " & Request.Form("txtISG_pcMake")
tempBody = tempBody & "<br>PC Model:      " & Request.Form("txtISG_pcModel")
tempBody = tempBody & "<br>PC Quantity:     " & Request.Form("txtISG_pcQuantity")
tempBody = tempBody & "<br>PC Vendor:      " & Request.Form("txtISG_pcVendor")
tempBody = tempBody & "<br>NW & Desktop Make:   " & Request.Form("txtISG_desktopMake")
tempBody = tempBody & "<br>NW & Desktop Model:  " & Request.Form("txtISG_desktopModel")
tempBody = tempBody & "<br>NW & Desktop Quantity:  " & Request.Form("txtISG_desktopQuantity")
tempBody = tempBody & "<br>NW & Desktop Vendor:  " & Request.Form("txtISG_desktopVendor")
tempBody = tempBody & "<br>NW InfraStructure Make:   " & Request.Form("txtISG_infrastructureMake")
tempBody = tempBody & "<br>NW InfraStructure Model:   " & Request.Form("txtISG_infrastructureModel")
tempBody = tempBody & "<br>NW InfraStructure Quantity:  " & Request.Form("txtISG_infrastructureQuantity")
tempBody = tempBody & "<br>NW InfraStructure Vendor:   " & Request.Form("txtISG_infrastructureVendor")
tempBody = tempBody & "<br>Attending Guest 1:   " & Request.Form("txtGuestName1") & ", " & Request.Form("txtGuestTitle1")
tempBody = tempBody & "<br>Attending Guest 2:   " & Request.Form("txtGuestName2") & ", " & Request.Form("txtGuestTitle2")
tempBody = tempBody & "<br>Attending Guest 3:   " & Request.Form("txtGuestName3") & ", " & Request.Form("txtGuestTitle3")
tempBody = tempBody & "<br>Attending Guest 4:   " & Request.Form("txtGuestName4") & ", " & Request.Form("txtGuestTitle4")
tempBody = tempBody & "<br>Additional Guest:   " & Request.Form("taAdditional")
tempBody = tempBody & "<br>ESI Only Meeting Sent Out:  " & Request.Form("rdoEsiOnly")
tempBody = tempBody & "<br>ESI Only Meeting Attendees:   " & Request.Form("taEsiOnly")
tempBody = tempBody & "<br>Corporate Cape Purpose:   " & Request.Form("taCapePurpose")
tempBody = tempBody & "<br>Known Account Members:     " & Request.Form("taKnownAcctMem")
tempBody = tempBody & "<br>Additional Information:   " & Request.Form("taAdditionalInfo")
tempBody = tempBody & "<br>Customer's Industry:     " & Request.Form("taCustomerIndustry")
tempBody = tempBody & "<br>Competitors:        " & Request.Form("taCompetitors")
tempBody = tempBody & "<br><b>Bldg 1 Tour Stops:</b>     " & Request.Form("bldg1")
tempBody = tempBody & "<BR><b><BR>Bldg 2 Tour Stops:</b>     " & Request.Form("bldg2")
tempBody = tempBody & "<BR><b><BR>Bldg 3 Tour Stops:</b>     " & Request.Form("bldgPssg")
tempBody = tempBody & "<BR><b><BR>Richmond Tour Stops:</b>     " & Request.Form("richmond")
tempBody = tempBody & "<BR><b><BR>Lynchburg Tour Stops:</b>     " & Request.Form("lynchburg")
tempBody = tempBody & "<BR><b><BR>Roanoke Tour Stops:</b>     " & Request.Form("roanoke")
objCMail.Body = tempBody
objCMail.Send
Set objCMail = Nothing
%>
  1. <%
  2. Dim objCMail 'holds the CDONTS NewMail Object
  3. Set objCMail = Server.CreateObject("CDONTS.NewMail") 'email server object
  4. objCMail.From = Request.Form("txtEsiRep")
  5. objCMail.To = ""
  6. objCMail.Cc = Request.Form("cc")
  7. objCMail.Subject = "testing"
  8. objCMail.BodyFormat = 0
  9. objCMail.MailFormat = 0
  10. objCMail.Importance = 2
  11. tempBody = "Corporate Cape Request <hr><br>"
  12. tempBody = tempBody & "Date of Request:   " & Request.Form("txtDate")
  13. tempBody = tempBody & "<br>Division:      " & Request.Form("txtDiv")
  14. tempBody = tempBody & "<br>ESI Rep:      " & Request.Form("txtEsiRep")
  15. tempBody = tempBody & "<br><br><hr>"
  16. tempBody = tempBody & "<br>Customer's Name:   " & Request.Form("txtCustomerName")
  17. tempBody = tempBody & "<br>Existing Customer:   " & Request.Form("rdoExistingCust")
  18. tempBody = tempBody & "<br>Doing Business w/:   " & Request.Form("chkDivisions")
  19. tempBody = tempBody & "<br>Sales History:     " & Request.Form("taSalesHistory")
  20. tempBody = tempBody & "<br>Customer Info<hr>"
  21. tempBody = tempBody & "<br># of Employees:   " & Request.Form("optNemployees")
  22. tempBody = tempBody & "<br>Annual Revenue:   " & Request.Form("optRevenue")
  23. tempBody = tempBody & "<br>Fiscal Year End:   " & Request.Form("txtFYE")
  24. tempBody = tempBody & "<br>CEO/President:     " & Request.Form("txtCEO")
  25. tempBody = tempBody & "<br>CIO:        " & Request.Form("txtCIO")
  26. tempBody = tempBody & "<br>CTO:        " & Request.Form("txtCTO")
  27. tempBody = tempBody & "<br>CFO:        " & Request.Form("txtCFO")
  28. tempBody = tempBody & "<br>IT Director:     " & Request.Form("txtIT")
  29. tempBody = tempBody & "<br>Head of Purchasing:  " & Request.Form("txtPurchasing")
  30. tempBody = tempBody & "<br><u>Customer's Needs Disposition</u><hr>"
  31. tempBody = tempBody & "<br>Training Type:     " & Request.Form("txtTrainType")
  32. tempBody = tempBody & "<br>Training Supplier:   " & Request.Form("txtTrainSupplier")
  33. tempBody = tempBody & "<br>Professional Supplier:  " & Request.Form("txtSuppliers_professional")
  34. tempBody = tempBody & "<br>Technical Supplier:  " & Request.Form("txtSuppliers_technical")
  35. tempBody = tempBody & "<br>PTG Service Supplier:  " & Request.Form("txtSuppliers_PTG")
  36. tempBody = tempBody & "<br>Copier Make:     " & Request.Form("txtPTG_copierMake")
  37. tempBody = tempBody & "<br>Copier Model:     " & Request.Form("txtPTG_copierModel")
  38. tempBody = tempBody & "<br>Copier Quantity:   " & Request.Form("txtPTG_copierQuantity")
  39. tempBody = tempBody & "<br>Copier Vendor:     " & Request.Form("txtPTG_copierVendor")
  40. tempBody = tempBody & "<br>Fax Make:      " & Request.Form("txtPTG_faxMake")
  41. tempBody = tempBody & "<br>Fax Model:      " & Request.Form("txtPTG_faxModel")
  42. tempBody = tempBody & "<br>Fax Quantity:     " & Request.Form("txtPTG_faxQuantity")
  43. tempBody = tempBody & "<br>Fax Vendor:     " & Request.Form("txtPTG_faxVendor")
  44. tempBody = tempBody & "<br>Printer Make:     " & Request.Form("txtPSSG_printerMake")
  45. tempBody = tempBody & "<br>Printer Model:     " & Request.Form("txtPSSG_printerModel")
  46. tempBody = tempBody & "<br>Printer Quantity:   " & Request.Form("txtPSSG_printerQuantity")
  47. tempBody = tempBody & "<br>Printer Vendor:   " & Request.Form("txtPSSG_printerVendor")
  48. tempBody = tempBody & "<br>Type of Supplies:   " & Request.Form("txtPSSG_SuppliesType")
  49. tempBody = tempBody & "<br>Supplies Vendor:   " & Request.Form("txtPSSG_SuppliesVendor")
  50. tempBody = tempBody & "<br>Server Make:     " & Request.Form("txtISG_serverMake")
  51. tempBody = tempBody & "<br>Server Model:     " & Request.Form("txtISG_serverModel")
  52. tempBody = tempBody & "<br>Server Quantity:   " & Request.Form("txtISG_serverQuantity")
  53. tempBody = tempBody & "<br>Server Vendor:     " & Request.Form("txtISG_serverVendor")
  54. tempBody = tempBody & "<br>PC Make:      " & Request.Form("txtISG_pcMake")
  55. tempBody = tempBody & "<br>PC Model:      " & Request.Form("txtISG_pcModel")
  56. tempBody = tempBody & "<br>PC Quantity:     " & Request.Form("txtISG_pcQuantity")
  57. tempBody = tempBody & "<br>PC Vendor:      " & Request.Form("txtISG_pcVendor")
  58. tempBody = tempBody & "<br>NW & Desktop Make:   " & Request.Form("txtISG_desktopMake")
  59. tempBody = tempBody & "<br>NW & Desktop Model:  " & Request.Form("txtISG_desktopModel")
  60. tempBody = tempBody & "<br>NW & Desktop Quantity:  " & Request.Form("txtISG_desktopQuantity")
  61. tempBody = tempBody & "<br>NW & Desktop Vendor:  " & Request.Form("txtISG_desktopVendor")
  62. tempBody = tempBody & "<br>NW InfraStructure Make:   " & Request.Form("txtISG_infrastructureMake")
  63. tempBody = tempBody & "<br>NW InfraStructure Model:   " & Request.Form("txtISG_infrastructureModel")
  64. tempBody = tempBody & "<br>NW InfraStructure Quantity:  " & Request.Form("txtISG_infrastructureQuantity")
  65. tempBody = tempBody & "<br>NW InfraStructure Vendor:   " & Request.Form("txtISG_infrastructureVendor")
  66. tempBody = tempBody & "<br>Attending Guest 1:   " & Request.Form("txtGuestName1") & ", " & Request.Form("txtGuestTitle1")
  67. tempBody = tempBody & "<br>Attending Guest 2:   " & Request.Form("txtGuestName2") & ", " & Request.Form("txtGuestTitle2")
  68. tempBody = tempBody & "<br>Attending Guest 3:   " & Request.Form("txtGuestName3") & ", " & Request.Form("txtGuestTitle3")
  69. tempBody = tempBody & "<br>Attending Guest 4:   " & Request.Form("txtGuestName4") & ", " & Request.Form("txtGuestTitle4")
  70. tempBody = tempBody & "<br>Additional Guest:   " & Request.Form("taAdditional")
  71. tempBody = tempBody & "<br>ESI Only Meeting Sent Out:  " & Request.Form("rdoEsiOnly")
  72. tempBody = tempBody & "<br>ESI Only Meeting Attendees:   " & Request.Form("taEsiOnly")
  73. tempBody = tempBody & "<br>Corporate Cape Purpose:   " & Request.Form("taCapePurpose")
  74. tempBody = tempBody & "<br>Known Account Members:     " & Request.Form("taKnownAcctMem")
  75. tempBody = tempBody & "<br>Additional Information:   " & Request.Form("taAdditionalInfo")
  76. tempBody = tempBody & "<br>Customer's Industry:     " & Request.Form("taCustomerIndustry")
  77. tempBody = tempBody & "<br>Competitors:        " & Request.Form("taCompetitors")
  78. tempBody = tempBody & "<br><b>Bldg 1 Tour Stops:</b>     " & Request.Form("bldg1")
  79. tempBody = tempBody & "<BR><b><BR>Bldg 2 Tour Stops:</b>     " & Request.Form("bldg2")
  80. tempBody = tempBody & "<BR><b><BR>Bldg 3 Tour Stops:</b>     " & Request.Form("bldgPssg")
  81. tempBody = tempBody & "<BR><b><BR>Richmond Tour Stops:</b>     " & Request.Form("richmond")
  82. tempBody = tempBody & "<BR><b><BR>Lynchburg Tour Stops:</b>     " & Request.Form("lynchburg")
  83. tempBody = tempBody & "<BR><b><BR>Roanoke Tour Stops:</b>     " & Request.Form("roanoke")
  84. objCMail.Body = tempBody
  85. objCMail.Send
  86. Set objCMail = Nothing
  87. %>

NOTE: It looked like all of the Email addresses were test addresses anyway so I diddn't change them back to what they were.

For future reference, properties of Server.CreateObject("CDONTS.NewMail") can only be set once.

For instance,
Code: [ Select ]
objCMail.Body = "Corporate Cape Request <hr><br>"
objCMail.Body = objCMail.Body & "Date of Request:   " & Request.Form("txtDate")
  1. objCMail.Body = "Corporate Cape Request <hr><br>"
  2. objCMail.Body = objCMail.Body & "Date of Request:   " & Request.Form("txtDate")

Should be,
Code: [ Select ]
'Use temp variable to build string
tempBody = "Corporate Cape Request <hr><br>"
tempBody = tempBody & "Date of Request:   " & Request.Form("txtDate")

'Apply value of temp string to Body property of objCMail
objCMail.Body = tempBody
  1. 'Use temp variable to build string
  2. tempBody = "Corporate Cape Request <hr><br>"
  3. tempBody = tempBody & "Date of Request:   " & Request.Form("txtDate")
  4. 'Apply value of temp string to Body property of objCMail
  5. objCMail.Body = tempBody

Now, a download dialog popping up on submission of the form makes me wonder somthing, Does the server hosting theese pages support ASP?
  • MeineChrista
  • Beginner
  • Beginner
  • User avatar
  • Posts: 56
  • Loc: Virginia Beach

Post 3+ Months Ago

joebert wrote:
Now, a download dialog popping up on submission of the form makes me wonder somthing, Does the server hosting theese pages support ASP?


Yes. However, I have been modifying and testing the form on my local system using Coldfusion and IIS. And, again I need to take some classes cause I'm not efficient in that either. I'm using it as a testing server but I have to go thru some trial and error. I think it may not be set up properly.

JB, I really do appreciate all of your help. Truly :oops: And I will let you know when I get the form up and running. Thanks so much.

Post Information

  • Total Posts in this topic: 21 posts
  • Users browsing this forum: No registered users and 86 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.