Question

if text field has words in it I need to be able to add a value to the total

Asked by: corbinn

I am new to posting a question but I need help.

I created a form and I want to add a hidden cost of $20 per text box that is filled in with a name.  I would like it to be automatically added into the total after they have typed in a name.  How can I do that?  FYI...I also have some java on the form to caculate the other costs which totals fine.

Thanks!

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2006-03-06 at 12:56:59ID21762850
Tags

caculate

,

form

Topic

Miscellaneous Web Development

Participating Experts
3
Points
500
Comments
28

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. a variable to store the total sum of "cost" field
    Dear experts, How can I make a created variable "total_cost" to store a cumulative total sum of "cost" field for every record in a recordset? Please take a look on the codes below i tried and pls help. Thank you. Dim total_cost <% ' Go to next recor...
  2. Need for to calculate "Quantity" * "Unit Cost" = "Tota…
    Can anyone come up with a script which does the following: The form would have 3 fields, namely Quantity, Unit Cost, and Total Cost. Quantity and Unit Cost would both be dropdown menus, and Total Cost would be calculated based on the selections made in Quantity and Uni...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: ZylochPosted on 2006-03-06 at 13:01:14ID: 16118289

Hi corbinn,

In order for us to smoothly integrate this with your other Javascript code already existing, can you post your entire code?

Regards,
Zyloch

 

by: monolith_888Posted on 2006-03-06 at 14:32:40ID: 16119379

See if this helps you out, hopefully you can tie this in with your code.  If you have any questions, let me know
///////////////////////// START ///////////////////////////////

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head><title>Add 20</title>
<script>
var hNames = [];      // Array init
var addOnAmt = 0;      // add on amount init

function load()
      {
      hNames.push(hName1,hName2,hName3,hName4); // populate array with ID's of the hidden fields that may be used
      }

function reAdd()
      {
      addOnAmt = 0;      // reset add on amount

      // cycle through the name fields, checking for length.
      // we do this in case a user deletes an entry.
      // add 20 for each name that exists
      for(var i=0; i<hNames.length; ++i)
            {
            if(hNames[i].value.length > 0)
                  addOnAmt += 20;
            }
      
      document.getElementById('filler').innerHTML = addOnAmt;
      }
</script>
</head>
<body onLoad="load()">

<input type="text" onchange="reAdd()" id="hName1"><br/>
<input type="text" onchange="reAdd()" id="hName2"><br/>
<input type="text" onchange="reAdd()" id="hName3"><br/>
<input type="text" onchange="reAdd()" id="hName4"><br/>

<div id="filler"></div>
</body>
</html>

///////////////////////// END///////////////////////////////

-monolith

 

by: corbinnPosted on 2006-03-06 at 15:30:20ID: 16119852

Sorry for the delay!  Here is the java that is already in there:

<SCRIPT LANGUAGE="JavaScript">
function calculate (options)
     {
     var price = new Array()
       price[0] = 1.00
       price[1] = 26.78

     var product = new Array()
       product[0] = "event51"
       product[1] = "event100"

var total = new Array(2)

var grandtotal = 0

for (var i = 0; i < product.length; ++i)
     {
       total[i] = eval("options."+product[i]+"_qty.value") * price[i]
       tot = eval("options."+product[i]+"_tot")
       tot.value = total[i]

     grandtotal += total[i]
     options.sub_total.value = grandtotal
     }
}
</SCRIPT>

 

by: ZylochPosted on 2006-03-06 at 16:37:59ID: 16120032

Well, first of all, about your code, perhaps you want instead of
total[i] = eval("options."+product[i]+"_qty.value") * price[i]

the more cleaner

total[i] = options.elements[product[i] + "_qty"].value * price[i];

Now, can we see some of your form code as well?

 

by: corbinnPosted on 2006-03-07 at 04:36:38ID: 16122778

This is the part that if they fill in either the first name block or the last name block a $20 fee will be added to the total.

<tr>
<td width="50"><font face="Arial" size="1">Guest 1</font></td>
<td width="50"><font face="Arial" size="1">Title:<cfinput type="Text" name="guest1title" size="30" maxlength="40">
</font></td>
<td width="250"><font face="Arial" size="1">First Name:<input type="Text" name="guest1first" size="30" maxlength="150" maxlength="150"></font></td>
<td width="250"><font face="Arial" size="1">Last Name:<cfinput type="Text" name="guest1last" size="30" maxlength="150" ></font></td>
<td width="50"><font face="Arial" size="1">Suffix:<cfinput type="Text" name="guest1suffix" size="10" maxlength="30" >
</font></td>
</tr>
<tr>
<td width="50"><font face="Arial" size="1">Guest 2</font></td>
<td width="50"><font face="Arial" size="1">Title:<cfinput type="Text" name="guest2title" size="30" maxlength="40" >
</font></td>
<td width="250"><font face="Arial" size="1">First Name:<cfinput type="Text" name="guest2first" size="30" maxlength="150" maxlength="150"></font></td>
<td width="250"><font face="Arial" size="1">Last Name:<cfinput type="Text" name="guest2last" size="30" maxlength="150" ></font></td>
<td width="50"><font face="Arial" size="1">Suffix:<cfinput type="Text" name="guest2suffix" size="10" maxlength="30" ></font></td>
</tr>
<tr>
<td width="50"><font face="Arial" size="1">Guest 3</font></td>
<td width="50"><font face="Arial" size="1">Title:<cfinput type="Text" name="guest3title" size="30" maxlength="40" >
</font></td>
<td width="250"><font face="Arial" size="1">First Name:<cfinput type="Text" name="guest3first" size="30" maxlength="150"></font></td>
<td width="250"><font face="Arial" size="1">Last Name:<cfinput type="Text" name="guest3last" size="30" maxlength="150" ></font></td>
<td width="50"><font face="Arial" size="1">Suffix:<cfinput type="Text" name="guest3suffix" size="10" maxlength="30" ></font></td>
</tr>
<tr>
<td width="50"><font face="Arial" size="1">Guest 4</font></td>
<td width="50"><font face="Arial" size="1">Title:<cfinput type="Text" name="guest4title" size="30" maxlength="40" >
</font></td>
<td width="250"><font face="Arial" size="1">First Name:<cfinput type="Text" name="guest4first" size="30" maxlength="150"></font></td>
<td width="250"><font face="Arial" size="1">Last Name:<cfinput type="Text" name="guest4last" size="30" maxlength="150" ></font></td>
<td width="50"><font face="Arial" size="1">Suffix:<cfinput type="Text" name="guest4suffix" size="10" maxlength="30" ></font></td>
</tr>
</table>

 

by: dukestaTAIPosted on 2006-03-07 at 07:10:52ID: 16124033

Here is a simple version.

<html>
<head>
      <title>Untitled</title>
</head>

<body>
<script type="text/javascript">
<!--
var addName = 0;
var intcost = 0;
function addTwenty() {

      if (!document.frmTotal.txtname.value) {
            addName = 0;
      }
      else {
            addName = 1;
      }
      if (intcost>0) {
      setTotal();
      }
            
}

function setCost(amount){
amount = parseInt(amount);
intcost = amount;
setTotal();
}

function setTotal(){
var totalCost = 0;
      if(addName<1){
      totalCost = intcost;
      }
      else {
      totalCost = Math.floor(intcost + 20);
      }
      document.frmTotal.cost.value = totalCost;
}
//-->
</script>
<form name="frmTotal">
<input type="radio" name="price" value="10" onfocus="setCost(this.value)"> - $10 <br>
<input type="radio" name="price" value="20" onfocus="setCost(this.value)"> - $20 <br>
<input type="radio" name="price" value="30" onfocus="setCost(this.value)"> - $30 <br>
<input type="radio" name="price" value="40" onfocus="setCost(this.value)"> - $40 <br>
Name:<input type="text" id="txtname" onchange="addTwenty()">(optional $20)<br><br>
<br><br>

Total: &nbsp;<input type="text" id="cost">


</form>

</body>
</html>

 

by: corbinnPosted on 2006-03-07 at 07:29:20ID: 16124207

This is nice but I would like it as a hidden cost that is added to their pre-existing subtotal from the above java. I would like it to work when they enter the first name and/or last name of Guest 1, 2, 3 and or 4 they will be charged 20 per guest.  

 

by: dukestaTAIPosted on 2006-03-07 at 07:50:30ID: 16124426

I this similar to what you want?

<html>
<head>
      <title>Untitled</title>
</head>

<body>
<script type="text/javascript">
<!--
var addName = 0;
var intcost = 0;
function addTwenty(item) {

      if (!item.value) {
            if (addName > 0){
            addName = addName - 1;
            }
      }
      else {
            addName = addName + 1;
      }
      if (intcost>0) {
      setTotal();
      }
            
}

function setCost(amount){
amount = parseInt(amount);
intcost = amount;
setTotal();
}

function setTotal(){
var totalCost = 0;
var hiddencost = Math.floor(20*addName);
      if(addName<1){
      totalCost = intcost;
      }
      else {
      totalCost = Math.floor(intcost + hiddencost);
      }
      document.frmTotal.hcost.value = hiddencost;
      document.frmTotal.subcost.value = intcost;
      document.frmTotal.cost.value = totalCost;
}
//-->
</script>
<form name="frmTotal">
<input type="radio" name="price" value="10" onfocus="setCost(this.value)"> - $10 <br>
<input type="radio" name="price" value="20" onfocus="setCost(this.value)"> - $20 <br>
<input type="radio" name="price" value="30" onfocus="setCost(this.value)"> - $30 <br>
<input type="radio" name="price" value="40" onfocus="setCost(this.value)"> - $40 <br>
Guest 1:<input type="text" id="txtname1" onchange="addTwenty(this)"><br>
Guest 2:<input type="text" id="txtname2" onchange="addTwenty(this)"><br>
Guest 3:<input type="text" id="txtname3" onchange="addTwenty(this)"><br>
Guest 4:<input type="text" id="txtname4" onchange="addTwenty(this)"><br>
<br><br>
Hidden Cost: &nbsp;<input type="text" id="hcost"><br>
SubTotal: &nbsp;<input type="text" id="subcost"><br>
Total: &nbsp;<input type="text" id="cost">


</form>

</body>
</html>

 

by: corbinnPosted on 2006-03-07 at 09:37:16ID: 16125452

Okay I tried not to put all the code in but I guess it's not working so here is the entire form.  

What I am trying to do exactly is charge a $20 fee for each guest and $145 fee for registrant.  I am able to get the registrant fee to work but it doesn't work with the guest name.


<html><head><title></title>
<link rel="stylesheet" type="text/css" href="upc.css">

<SCRIPT LANGUAGE="JavaScript">

function calculate (options)
     {
     var price = new Array()
       price[0] = 1.00
       price[1] = 26.78
       price[2] = 26.78
       price[3] = 26.78
       price[4] = 26.78
       price[5] = 26.78
       price[6] = 26.78
       price[7] = 26.78
       price[8] = 39.14
       price[9] = 14.42
       price[10] = 6.18
       price[11] = 44.00
       price[12] = 167.00
       price[13] = 155.00
       price[14] = 21.00
       price[15] = 8.00
       price[16] = 20.00
      

     var product = new Array()
       product[0] = "event100"
       product[1] = "event51"
       product[2] = "event52"
       product[3] = "event53"
       product[4] = "event54"
       product[5] = "event55"
       product[6] = "event56"
       product[7] = "event57"
       product[8] = "event58"
       product[9] = "event59"
       product[10] = "event60"
       product[11] = "event62"
       product[12] = "event63"
       product[13] = "event64"
       product[14] = "event65"
        product[15] = "event66"
       product[16] = "event67"


var total = new Array(17)

var grandtotal = 0

for (var i = 0; i < product.length; ++i)
     {
       total[i] = eval("options."+product[i]+"_qty.value") * price[i]
       tot = eval("options."+product[i]+"_tot")
       tot.value = total[i]

     grandtotal += total[i]
     options.sub_total.value = grandtotal
     }
}

</SCRIPT>
</head>

<body>
<table width="595" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#000000">

<!---<table><Tr><td>This site is closed.  Thank you for registering.</td></Tr></table> --->
 <cfform action="process.cfm" method="post" name="Reunion">



<table width="595" align="center">
<tr><td><font size="+1"><center>Please complete this <b>ENTIRE</b> form when there is a drop down box please use your mouse to select the correct response and click the <b>Submit</b> button at the bottom of the page after you review your entries.</center></font></td></tr></table>
<!--- Inside the form --->                  
<table border="0" cellspacing="5" cellpadding="0" valign="TOP" width="720" align="center">

<tr>
<td height="22" width="200"><font face="Arial" size="2">Title/Rank (optional):</font></td>
<td valign="top"> <div align="left"><font face="Arial" size="2"><cfinput type="Text" name="title" size="35" maxlength="35">
</font></div>
</td>
</tr>

<tr>
<td height="22" width="200"><font face="Arial" size="2">First Name:</font></td>
<td valign="top"> <div align="left"><font face="Arial" size="2"><cfinput type="Text" name="fname" message="Please enter your first name." required="Yes" size="35" maxlength="35">
</font></div>
</td>
</tr>

<tr>
<td height="22" width="200"><font face="Arial" size="2">Last Name:</font></td>
<td valign="top"> <div align="left"><font face="Arial" size="2"> <cfinput type="Text" name="lname" message="Please enter your last name." required="Yes" size="35" maxlength="35">
</font></div>
</td>
</tr>

<tr>
<td height="22" width="200"><font face="Arial" size="2">Suffix (Optional):</font></td>
<td valign="top"> <div align="left"><font face="Arial" size="2"> <cfinput type="Text" name="suffix" size="35" maxlength="35">
</font></div>
</td>
</tr>

<tr>
<td height="23" width="200"><font face="Arial" size="2">Street Line 1:</font></td>
<td valign="top">
<div align="left"><font face="Arial" size="2">
<cfinput type="Text" name="address1" message="Please enter your address" required="Yes" size="35" maxlength="35">
</font></div>
</td>
</tr>

<tr>
<td height="23" width="200"><font face="Arial" size="2">Street Line 2:</font></td>
<td valign="top"> <div align="left"><font face="Arial" size="2"> <cfinput type="Text" name="address2" size="35" maxlength="35"></font></div>
</td>
</tr>

<tr>
<td height="24" width="200"><font face="Arial" size="2">City: </font></td>
<td width="195" valign="top"><div align="left"><font face="Arial" size="2"><cfinput type="Text" name="city" message="Please enter your city." required="Yes" size="35" maxlength="35"></font></div>
</td>
</tr>

<tr>
<td width="200"><font face="Arial" size="2">State:</font></td>
<td valign="top"> <div align="left"><font face="Arial" size="2"> <select name="state">
      <option value="">State</option>
      <option value="AL">Alabama</option>
      <option value="AK">Alaska</option>
      <option value="AZ">Arizona</option>
      <option value="AR">Arkansas</option>
      <option value="CA">California</option>
      <option value="CO">Colorado</option>
      <option value="CT">Connecticut</option>
      <option value="DE">Delaware</option>
      <option value="DC">District of Columbia</option>
      <option value="FL">Florida</option>
      <option value="GA">Georgia</option>
      <option value="HI">Hawaii</option>
      <option value="ID">Idaho</option>
      <option value="IL">Illinois</option>
      <option value="IN">Indiana</option>
      <option value="IA">Iowa</option>
      <option value="KS">Kansas</option>
      <option value="KY">Kentucky</option>
      <option value="LA">Louisiana</option>
      <option value="ME">Maine</option>
      <option value="MD">Maryland</option>
      <option value="MA">Massachusetts</option>
      <option value="MI">Michigan</option>
      <option value="MN">Minnesota</option>
      <option value="MS">Mississippi</option>
      <option value="MO">Missouri</option>
      <option value="MT">Montana</option>
      <option value="NE">Nebraska</option>
      <option value="NV">Nevada</option>
      <option value="NH">New Hampshire</option>
      <option value="NJ">New Jersey</option>
      <option value="NM">New Mexico</option>
      <option value="NY">New York</option>
      <option value="NC">North Carolina</option>
      <option value="ND">North Dakota</option>
      <option value="OH">Ohio</option>
      <option value="OK">Oklahoma</option>
      <option value="OR">Oregon</option>
      <option value="PA">Pennsylvania</option>
      <option value="RI">Rhode Island</option>
      <option value="SC">South Carolina</option>
      <option value="SD">South Dakota</option>
      <option value="TN">Tennessee</option>
      <option value="TX">Texas</option>
      <option value="UT">Utah</option>
      <option value="VT">Vermont</option>
      <option value="VA">Virginia</option>
      <option value="WA">Washington</option>
      <option value="WV">West Virginia</option>
      <option value="WI">Wisconsin</option>
      <option value="WY">Wyoming</option>
</select>
</font></div><input type="hidden" name="event100_qty" value="145">
<input type="hidden" NAME="event100_tot">
</td>
</tr>
<tr>
<td height="24" width="200"><font face="Arial" size="2">Zip Code:</font></td>
<td valign="top">
<div align="left"><font face="Arial" size="2">
<cfinput name="zip" type="text" size="35" maxlength="35" required="yes" message="Please enter your zip code." validate="zipcode">
</font></div>
</td></tr>

<tr>
<td height="24" width="200"><font size="2" face="Arial">Home Phone:<br>xxx-xxx-xxxx</font></td>
<td valign="top">
<div align="left"><font size="2" face="Arial">
<cfinput name="hphone" type="text" size="35" maxlength="35" message="Please enter your home phone number." validate="telephone">
</font></div>
</td>
</tr>
<tr>
<td height="22" width="200"><font size="2" face="Arial">Business Phone:<br>xxx-xxx-xxxx</font></td>
<td valign="top">
<div align="left"><font size="2" face="Arial">
<cfinput type="text" name="workphone" size="35" maxlength="35">
</font></div>
</td>
</tr>
<tr>
<td height="22" width="200"><font face="Arial" size="2">Email:</font></td>
<td valign="top">
<div align="left"><font face="Arial" size="2">
<cfinput type="Text" name="email" message="Please enter your e-mail address." required="Yes" size="35" maxlength="35">
</font></div>
</td>

</tr>


<tr><td colspan="3"><hr></td></tr>
<tr>
<td colspan="3"> <font size="2" face="Arial">&nbsp; &nbsp; &nbsp; <b>Your Registration Bag</b> will contain the following items:<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <b>Polo Shirt</b> (Black with Class Crest, please select <select name="event1">
  <option value="">Shirt Size</option>
  <option value="XS">XS</option>
  <option value="S">S</option>
  <option value="M">M</option>
  <option value="L">L</option>
  <option value="XL">XL</option>
  <option value="XXL">XXL</option>
  <option value="XXXL">XXXL</option>
</select>)<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <b>Adjustable Baseball Cap</b> (Black with Class Crest)<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <b>Key fob</b> (with Class Crest)<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <b>Ladies Silk Scarf</b> (with Class Crest)<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <b>Name tags</b> for you and your guest(s).</font>
</td>
</tr>
<tr><td colspan="3"><hr></td></tr>
</table>



<table width="595" align="center">
<tr>
<td width="295"><font size="+1" face="Arial">September 14th (Thursday):</font></td><td width="300"><font size="2" face="Arial"><select name="event62_qty" onclick="calculate(Reunion);">
  <option value="0">0</option>
  <option value="1">1</option>
  <option value="2">2</option>
  <option value="3">3</option>
  <option value="4">4</option>
  <option value="5">5</option>
</select><INPUT NAME="event62_tot" type="hidden"> $44.00 per person.</font></td>
</tr>

<tr>
<td width="295"><font size="+1" face="Arial">September 15th (Friday):</font></td><td width="300"><font size="2" face="Arial"><select name="event63_qty" onclick="calculate(Reunion);">
<option value="0">0</option>
  <option value="1">1</option>
  <option value="2">2</option>
  <option value="3">3</option>
  <option value="4">4</option>
  <option value="5">5</option>
</select><INPUT NAME="event63_tot" type="hidden"> $167.00 per person.</font></td>
</tr>

<tr>
<td width="295"><font size="+1" face="Arial">September 16th (Saturday):</font></td><td width="300"><font size="2" face="Arial"><select name="event64_qty" onclick="calculate(Reunion);">
<option value="0">0</option>
  <option value="1">1</option>
  <option value="2">2</option>
  <option value="3">3</option>
  <option value="4">4</option>
  <option value="5">5</option>
  </select><INPUT NAME="event64_tot" type="hidden"> $155.00 per person.</font></td>
</tr>

<tr><td colspan="2"><hr></td></tr>
<tr>
<td width="300"><font size="+1" face="Arial">September 17th (Sunday):</font></td><td width="295"><font size="2" face="Arial"><select name="event65_qty" onclick="calculate(Reunion);">
  <option value="0">0</option>
  <option value="1">1</option>
  <option value="2">2</option>
  <option value="3">3</option>
  <option value="4">4</option>
  <option value="5">5</option>
</select><INPUT NAME="event65_tot" type="hidden"> $21.00 per person.</font></td>
</tr>
<tr><td colspan="2"><font size="2" face="Arial">Price includes:  Full Breakfast</font></font></td></tr>
<tr><td colspan="2"><hr></td></tr>
<tr><td colspan="2"><font size="+1" face="Arial">Optional Items:</font></td></tr>
<tr><td width="300"><font size="2" face="Arial"><b>September 14th (Thursday)</b>, Lunch and Rally</font></td><td width="295"><font size="2" face="Arial"><select name="event66_qty" onclick="calculate(Reunion);">
  <option value="0">0</option>
  <option value="1">1</option>
  <option value="2">2</option>
  <option value="3">3</option>
  <option value="4">4</option>
  <option value="5">5</option>
</select><INPUT NAME="event66_tot" type="hidden"> $8.00 per person.</font></td></tr>
<tr><td width="300"><font size="2" face="Arial"><b>September 17th (Sunday)</b>, Cruise on Boat</font></td><td width="295"><font size="2" face="Arial"><select name="event67_qty" onclick="calculate(Reunion);">
  <option value="0">0</option>
  <option value="1">1</option>
  <option value="2">2</option>
  <option value="3">3</option>
  <option value="4">4</option>
  <option value="5">5</option>
</select><INPUT NAME="event67_tot" type="hidden"> $20.00 per person.</font></td></tr>
</table>
<table width="595" align="center">
<tr><td><hr></td></tr>
<tr>
<td><font size="+1" face="Arial">Name Badges:</font></td>
</tr>

<tr>
  <td colspan="2"><font face="Arial" size="2">Names of <b>everyone</b> attending:<br>
    (Please enter them the way that you would like to see them to appear on name badges)</font> </td>
  </tr>
</table>

<table width="720" align="center">
<tr>
<td width="50"><font face="Arial" size="1">Registrant</font></td>
<td width="50"><font face="Arial" size="1">Title:<cfinput type="Text" name="titletag" size="30" maxlength="40" >
</font></td>
<td width="250"><font face="Arial" size="1">First Name:<cfinput type="Text" name="fnametag" size="30" maxlength="150">
</font>
</td>
<td width="250"><font face="Arial" size="1">Last Name:<cfinput type="Text" name="lnametag" size="30" maxlength="150">
</font></td>
<td width="50"><font face="Arial" size="1">Suffix:<cfinput type="Text" name="suffixtag" size="10" maxlength="30" >
</font></td>
</tr>
<tr>
<td width="50"><font face="Arial" size="1">Guest 1</font></td>
<td width="50"><font face="Arial" size="1">Title:<cfinput type="Text" name="guest1title" size="30" maxlength="40"><br/>
</font></td>
<td width="250"><font face="Arial" size="1">First Name:<input type="Text" name="guest1first" size="30" maxlength="150" maxlength="150"></font></td>
<td width="250"><font face="Arial" size="1">Last Name:<cfinput type="Text" name="guest1last" size="30" maxlength="150" >
</font></td>
<td width="50"><font face="Arial" size="1">Suffix:<cfinput type="Text" name="guest1suffix" size="10" maxlength="30" >
</font></td>
</tr>
<tr>
<td width="50"><font face="Arial" size="1">Guest 2</font></td>
<td width="50"><font face="Arial" size="1">Title:<cfinput type="Text" name="guest2title" size="30" maxlength="40" >
</font></td>
<td width="250"><font face="Arial" size="1">First Name:<cfinput type="Text" name="guest2first" size="30" maxlength="150" maxlength="150">
</font>
</td>
<td width="250"><font face="Arial" size="1">Last Name:<cfinput type="Text" name="guest2last" size="30" maxlength="150" >
</font></td>
<td width="50"><font face="Arial" size="1">Suffix:<cfinput type="Text" name="guest2suffix" size="10" maxlength="30" >
</font></td>
</tr>
<tr>
<td width="50"><font face="Arial" size="1">Guest 3</font></td>
<td width="50"><font face="Arial" size="1">Title:<cfinput type="Text" name="guest3title" size="30" maxlength="40" >
</font></td>
<td width="250"><font face="Arial" size="1">First Name:<cfinput type="Text" name="guest3first" size="30" maxlength="150">
</font>
</td>
<td width="250"><font face="Arial" size="1">Last Name:<cfinput type="Text" name="guest3last" size="30" maxlength="150" >
</font></td>
<td width="50"><font face="Arial" size="1">Suffix:<cfinput type="Text" name="guest3suffix" size="10" maxlength="30" >
</font></td>
</tr>
<tr>
<td width="50"><font face="Arial" size="1">Guest 4</font></td>
<td width="50"><font face="Arial" size="1">Title:<cfinput type="Text" name="guest4title" size="30" maxlength="40" >
</font></td>
<td width="250"><font face="Arial" size="1">First Name:<cfinput type="Text" name="guest4first" size="30" maxlength="150">
</font>
</td>
<td width="250"><font face="Arial" size="1">Last Name:<cfinput type="Text" name="guest4last" size="30" maxlength="150" >
</font></td>
<td width="50"><font face="Arial" size="1">Suffix:<cfinput type="Text" name="guest4suffix" size="10" maxlength="30" >
</font></td>
</tr>
</table>

<table width="595" align="center">
<tr><td><hr></td></tr>
<tr>
<td><font size="+1" face="Arial">Additional Memorabilia Items:</font></td>
</tr>
</table>
<table width="595" align="center">

<tr>
<td colspan="2"><font size="2" face="Arial"><b>Polo Shirt</b><br>$26.78 per shirt</font></td></tr>
<tr><td width="295"><font size="2" face="Arial">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; X-Small</font></td>
<td width="300"><select name="event51_qty" onclick="calculate(Reunion);">
  <option value="0">0</option>
  <option value="1">1</option>
  <option value="2">2</option>
  <option value="3">3</option>
  <option value="4">4</option>
  <option value="5">5</option>
</select><INPUT NAME="event51_tot" type="hidden"></td>
</tr>
<tr><td width="295"><font size="2" face="Arial">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Small</font></td>
<td><select name="event52_qty" onclick="calculate(Reunion);">
  <option value="0">0</option>
  <option value="1">1</option>
  <option value="2">2</option>
  <option value="3">3</option>
  <option value="4">4</option>
  <option value="5">5</option>
</select><INPUT NAME="event52_tot" type="hidden"></td></tr>
<tr><td width="295"><font size="2" face="Arial">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Medium</font></td>
<td><select name="event53_qty" onclick="calculate(Reunion);">
  <option value="0">0</option>
  <option value="1">1</option>
  <option value="2">2</option>
  <option value="3">3</option>
  <option value="4">4</option>
  <option value="5">5</option>
</select><INPUT NAME="event53_tot" type="hidden"></td></tr>
<tr><td width="295"><font size="2" face="Arial">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Large</font></td>
<td><select name="event54_qty" onclick="calculate(Reunion);">
  <option value="0">0</option>
  <option value="1">1</option>
  <option value="2">2</option>
  <option value="3">3</option>
  <option value="4">4</option>
  <option value="5">5</option>
</select><INPUT NAME="event54_tot" type="hidden"></td></tr>
<tr><td width="295"><font size="2" face="Arial">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; X-Large</font></td>
<td><select name="event55_qty" onclick="calculate(Reunion);">
  <option value="0">0</option>
  <option value="1">1</option>
  <option value="2">2</option>
  <option value="3">3</option>
  <option value="4">4</option>
  <option value="5">5</option>
</select><INPUT NAME="event55_tot" type="hidden"></td></tr>
<tr><td width="295"><font size="2" face="Arial">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; XX-Large</font></td>
<td><select name="event56_qty" onclick="calculate(Reunion);">
  <option value="0">0</option>
  <option value="1">1</option>
  <option value="2">2</option>
  <option value="3">3</option>
  <option value="4">4</option>
  <option value="5">5</option>
</select><INPUT NAME="event56_tot" type="hidden"></td></tr>
<tr><td width="295"><font size="2" face="Arial">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; XXX-Large</font></td>
<td><select name="event57_qty" onclick="calculate(Reunion);">
  <option value="0">0</option>
  <option value="1">1</option>
  <option value="2">2</option>
  <option value="3">3</option>
  <option value="4">4</option>
  <option value="5">5</option>
</select><INPUT NAME="event57_tot" type="hidden"></td></tr>
<tr>
<td width="295"><font size="2" face="Arial"><b>Ladies Silk Scarf</b><br>$39.14 each</font></td>
<td><select name="event58_qty" onclick="calculate(Reunion);">
  <option value="0">0</option>
  <option value="1">1</option>
  <option value="2">2</option>
  <option value="3">3</option>
  <option value="4">4</option>
  <option value="5">5</option>
</select><INPUT NAME="event58_tot" type="hidden"></td>
</tr>
<tr>
<td width="295"><font size="2" face="Arial"><b>Baseball Cap</b><br>$14.42 each</font></td>
<td><select name="event59_qty" onclick="calculate(Reunion);">
  <option value="0">0</option>
  <option value="1">1</option>
  <option value="2">2</option>
  <option value="3">3</option>
  <option value="4">4</option>
  <option value="5">5</option>
</select><INPUT NAME="event59_tot" type="hidden"></td>
</tr>
<tr>
<td width="295"><font size="2" face="Arial"><b>Key Fob</b><br>$6.18 each</font></td>
<td><select name="event60_qty" onclick="calculate(Reunion);">
  <option value="0">0</option>
  <option value="1">1</option>
  <option value="2">2</option>
  <option value="3">3</option>
  <option value="4">4</option>
  <option value="5">5</option>
</select><INPUT NAME="event60_tot" type="hidden"></td>
</tr>

</table>




<hr>
<table width="595" align="center">
<tr>
<td colspan="2"><font size="+1" face="Arial">Payment Information:</font>&nbsp; &nbsp;</td>
</tr>

<tr>
<td colspan="2"><strong><font color="#FF0000">Please fill in applicable fields.</font></strong> &nbsp; &nbsp;</td>
</tr>


<tr>
<td><font size="2" face="Arial">Credit Card:</font></td>
<td width="327"> <font size="2" face="Arial"><b>Visa</b>
    <input type="radio" name="cctype" value="Visa"> &nbsp; &nbsp; &nbsp; &nbsp;
 <b>MasterCard</b>
<input type="radio" name="cctype" value="mc"> &nbsp; &nbsp;
</font>&nbsp; &nbsp;</td><td rowspan="5">
</td>
</tr>
<tr>
<td width="327"><font size="2" face="Arial">Card Number: </font></td>
<td width="327"><font size="2" face="Arial">
<cfinput type="text" name="ccnum" size="35" maxlength="34" required="yes" validate="creditcard"></font></td>
</tr>
<tr>
<td><font size="2" face="Arial">Expiration Date:</font></td>
<td><font size="2" face="Arial">
<select name="cc_month">
                                          <option value="01">01</option>
                                          <option value="02">02</option>
                                          <option value="03">03</option>
                                          <option value="04">04</option>
                                          <option value="05">05</option>
                                          <option value="06">06</option>
                                          <option value="07">07</option>
                                          <option value="08">08</option>
                                          <option value="09">09</option>
                                          <option value="10">10</option>
                                          <option value="11">11</option>
                                          <option value="12">12</option>
            </select>
                              /
                                    <select name="cc_year">
                                          
                        <option value="2006">2006</option>
                        <option value="2007">2007</option>
                        <option value="2008">2008</option>
                        <option value="2009">2009</option>
                        <option value="2010">2010</option>
                        <option value="2011">2011</option>
                        <option value="2012">2012</option>
                        <option value="2013">2013</option>
                        <option value="2014">2014</option>
                                    </select>
                                                        </font></td>
</tr>
<tr>
<td><font face="Arial" size="2">Cardholder's Name:<br>(as it appears on the card)</font></td>
<td><font face="Arial" color="#000000" size="2">
<input type="text" name="ccname" size="35" maxlength="60">
</font></td>
</tr>
 <tr>
    <td>Card Code: <a href="#" onClick="window.open('pop_card_code.htm','','width=650,height=400')">What is this?</a></td>
    <td>
      <input type="text" name="card_code" size="10">
    </td>
  </tr>
  </table>
<table width="595" align="center"><tr>
<td><font face="Arial" size="2">By clicking on the Submit button below, I authorize my reservation to be charged to my credit card  for $<INPUT NAME="sub_total" TYPE="text" size="10">.</font></td>
</tr>
</table><hr>
<table width="595" align="center">
<tr>
<td height="2">
<div align="center"><font face="Arial">
<input type="submit"  value="Submit"  name="submit">
</font></div>
</td>
</tr>
</table>
</cfform>
</body>
</html>

 

by: dukestaTAIPosted on 2006-03-07 at 11:09:11ID: 16126283

This should do what you want but you have to adapt it to you application.

<html>
<head>
      <title>Untitled</title>
</head>

<body>
<SCRIPT LANGUAGE="JavaScript">


function addCost() {
var addName = 0;
var costPerName = 20;
var guests = new Array();
guests[0] = Math.floor(document.frmGuest.guest1first.value.length + document.frmGuest.guest1last.value.length);
guests[1] = Math.floor(document.frmGuest.guest2first.value.length + document.frmGuest.guest2last.value.length);
guests[2] = Math.floor(document.frmGuest.guest3first.value.length + document.frmGuest.guest3last.value.length);
guests[3] = Math.floor(document.frmGuest.guest4first.value.length + document.frmGuest.guest4last.value.length);



      for (var i=0;i<guests.length;i++)
      {
            if(guests[i] > 0){
            addName++
            }
            
      }
      
      document.frmGuest.hcost.value = Math.floor(addName*costPerName);
            
}

</SCRIPT>
<table>
<tr> <form name="frmGuest">
<td width="50"><font face="Arial" size="1">Guest 1</font></td>
<td width="50"><font face="Arial" size="1">Title:<input type="Text" name="guest1title" size="30" maxlength="40">
</font></td>
<td width="250"><font face="Arial" size="1">First Name:<input type="Text" name="guest1first" onchange="addCost(this)" size="30" maxlength="150"></font></td>
<td width="250"><font face="Arial" size="1">Last Name:<input type="Text" name="guest1last" size="30" maxlength="150" ></font></td>
<td width="50"><font face="Arial" size="1">Suffix:<input type="Text" name="guest1suffix" size="10" maxlength="30" >
</font></td>
</tr>
<tr>
<td width="50"><font face="Arial" size="1">Guest 2</font></td>
<td width="50"><font face="Arial" size="1">Title:<input type="Text" name="guest2title" size="30" maxlength="40" >
</font></td>
<td width="250"><font face="Arial" size="1">First Name:<input type="Text" name="guest2first" onchange="addCost(this)" size="30" maxlength="150" ></font></td>
<td width="250"><font face="Arial" size="1">Last Name:<input type="Text" name="guest2last" size="30" maxlength="150" ></font></td>
<td width="50"><font face="Arial" size="1">Suffix:<input type="Text" name="guest2suffix" size="10" maxlength="30" ></font></td>
</tr>
<tr>
<td width="50"><font face="Arial" size="1">Guest 3</font></td>
<td width="50"><font face="Arial" size="1">Title:<input type="Text" name="guest3title" size="30" maxlength="40" >
</font></td>
<td width="250"><font face="Arial" size="1">First Name:<input type="Text" name="guest3first" onchange="addCost(this)" size="30" maxlength="150"></font></td>
<td width="250"><font face="Arial" size="1">Last Name:<input type="Text" name="guest3last" size="30" maxlength="150" ></font></td>
<td width="50"><font face="Arial" size="1">Suffix:<input type="Text" name="guest3suffix" size="10" maxlength="30" ></font></td>
</tr>
<tr>
<td width="50"><font face="Arial" size="1">Guest 4</font></td>
<td width="50"><font face="Arial" size="1">Title:<input type="Text" name="guest4title" size="30" maxlength="40" >
</font></td>
<td width="250"><font face="Arial" size="1">First Name:<input type="Text" name="guest4first" onchange="addCost(this)" size="30" maxlength="150"></font></td>
<td width="250"><font face="Arial" size="1">Last Name:<input type="Text" name="guest4last" size="30" maxlength="150" ></font></td>
<td width="50"><font face="Arial" size="1">Suffix:<input type="Text" name="guest4suffix" size="10" maxlength="30" ></font></td>
</tr>
</table>
<br><br>
Hidden Cost: &nbsp;<input type="text" id="hcost"><br>

</form>
</body>
</html>

 

by: corbinnPosted on 2006-03-07 at 11:38:07ID: 16126560

That works nice but how do I tie it into the already coded java to use only one total?

 

by: dukestaTAIPosted on 2006-03-07 at 11:45:12ID: 16126641

Where calculate your grand total create a global variable called something like:

var hiddencost

Then modify the function I created to something like this:

function addCost() {
var addName = 0;
var costPerName = 20;
var guests = new Array();
guests[0] = Math.floor(document.frmGuest.guest1first.value.length + document.frmGuest.guest1last.value.length);
guests[1] = Math.floor(document.frmGuest.guest2first.value.length + document.frmGuest.guest2last.value.length);
guests[2] = Math.floor(document.frmGuest.guest3first.value.length + document.frmGuest.guest3last.value.length);
guests[3] = Math.floor(document.frmGuest.guest4first.value.length + document.frmGuest.guest4last.value.length);



     for (var i=0;i<guests.length;i++)
     {
          if(guests[i] > 0){
          addName++
          }
         
     }
     
     hiddencost = Math.floor(addName*costPerName);
         
}

Then after you calulate your grand total add this line:

grandtotal = grandtotal + hiddencost;

This just adds the two values.

 

by: corbinnPosted on 2006-03-07 at 12:15:56ID: 16126973

I must be missing something because it comes up with Nan as the total

<SCRIPT LANGUAGE="JavaScript">
function addCost() {
var addName = 0;
var costPerName = 20;
var guests = new Array();
guests[0] = Math.floor(document.frmGuest.fnametag.value.length + document.frmGuest.lnametag.value.length);
guests[1] = Math.floor(document.frmGuest.guest1first.value.length + document.frmGuest.guest1last.value.length);
guests[2] = Math.floor(document.frmGuest.guest2first.value.length + document.frmGuest.guest2last.value.length);
guests[3] = Math.floor(document.frmGuest.guest3first.value.length + document.frmGuest.guest3last.value.length);
guests[4] = Math.floor(document.frmGuest.guest4first.value.length + document.frmGuest.guest4last.value.length);
     for (var i=0;i<guests.length;i++)
     {
          if(guests[i] > 0){
          addName++
          }
         
     }
     
     hiddencost = Math.floor(addName*costPerName);
         
}

function calculate (options)
     {
     var price = new Array()
       price[0] = 1.00
       price[1] = 26.78
       price[2] = 26.78
       price[3] = 26.78
       price[4] = 26.78
       price[5] = 26.78
       price[6] = 26.78
       price[7] = 26.78
       price[8] = 39.14
       price[9] = 14.42
       price[10] = 6.18
       price[11] = 44.00
       price[12] = 167.00
       price[13] = 155.00
       price[14] = 21.00


     var product = new Array()
       product[0] = "event100"
       product[1] = "event51"
       product[2] = "event52"
       product[3] = "event53"
       product[4] = "event54"
       product[5] = "event55"
       product[6] = "event56"
       product[7] = "event57"
       product[8] = "event58"
       product[9] = "event59"
       product[10] = "event60"
       product[11] = "event62"
       product[12] = "event63"
       product[13] = "event64"
       product[14] = "event65"

var total = new Array(15)

var grandtotal = 0
var hiddencost
for (var i = 0; i < product.length; ++i)
     {
       total[i] = eval("options."+product[i]+"_qty.value") * price[i]
       tot = eval("options."+product[i]+"_tot")
       tot.value = total[i]

     grandtotal += total[i]
     options.sub_total.value = grandtotal
       grandtotal = grandtotal + hiddencost;
     }
}

</SCRIPT>

 

by: dukestaTAIPosted on 2006-03-07 at 12:20:04ID: 16127026

You just need to move the hidden cost variable like this:

<SCRIPT LANGUAGE="JavaScript">
var hiddencost = 0;
 
function addCost() {
var addName = 0;
var costPerName = 20;
var guests = new Array();
guests[0] = Math.floor(document.frmGuest.fnametag.value.length + document.frmGuest.lnametag.value.length);
guests[1] = Math.floor(document.frmGuest.guest1first.value.length + document.frmGuest.guest1last.value.length);
guests[2] = Math.floor(document.frmGuest.guest2first.value.length + document.frmGuest.guest2last.value.length);
guests[3] = Math.floor(document.frmGuest.guest3first.value.length + document.frmGuest.guest3last.value.length);
guests[4] = Math.floor(document.frmGuest.guest4first.value.length + document.frmGuest.guest4last.value.length);
     for (var i=0;i<guests.length;i++)
     {
          if(guests[i] > 0){
          addName++
          }
         
     }
     
     hiddencost = Math.floor(addName*costPerName);
         
}

function calculate (options)
     {
     var price = new Array()
      price[0] = 1.00
      price[1] = 26.78
      price[2] = 26.78
      price[3] = 26.78
      price[4] = 26.78
      price[5] = 26.78
      price[6] = 26.78
      price[7] = 26.78
      price[8] = 39.14
      price[9] = 14.42
      price[10] = 6.18
      price[11] = 44.00
      price[12] = 167.00
      price[13] = 155.00
      price[14] = 21.00


     var product = new Array()
      product[0] = "event100"
      product[1] = "event51"
      product[2] = "event52"
      product[3] = "event53"
      product[4] = "event54"
      product[5] = "event55"
      product[6] = "event56"
      product[7] = "event57"
      product[8] = "event58"
      product[9] = "event59"
      product[10] = "event60"
      product[11] = "event62"
      product[12] = "event63"
      product[13] = "event64"
      product[14] = "event65"

var total = new Array(15)

var grandtotal = 0

for (var i = 0; i < product.length; ++i)
     {
      total[i] = eval("options."+product[i]+"_qty.value") * price[i]
      tot = eval("options."+product[i]+"_tot")
      tot.value = total[i]

     grandtotal += total[i]
     options.sub_total.value = grandtotal
      grandtotal = grandtotal + hiddencost;
     }
}

</SCRIPT>

 

by: corbinnPosted on 2006-03-07 at 12:49:56ID: 16127367

It is some what working.  It is just adding wrong.  When I add the Guest 1 first name the total ends up being $425 instead of $165.

 

by: dukestaTAIPosted on 2006-03-07 at 13:03:08ID: 16127487

Try displaying each value using:

document.write("Grand Total: " + grandtotal + "<br>Hidden Cost: " + hiddencost);

This should show you where the problem is.

 

by: corbinnPosted on 2006-03-08 at 07:16:58ID: 16134357

Help!  I am still having a problem.  I plugged this in
        document.write("Grand Total: " + grandtotal + "<br>Hidden Cost: " + hiddencost + "<br>Subtotal: " + sub_total);
To try and help me with the problem but it is not helping.

The reason why I added sub_total is because that is what it is called at the bottom of the form (<INPUT NAME="sub_total" TYPE="text" size="10">).

Anyway I typed one guest and click on 0 for an event and the screen showed Grand Total: 165 (which is right), Hidden Cost: 20 (which is also right) and Subtotal: 0 (which is wrong).  When I hit the back button the Subtotal at the bottom of the for says 145 (which is wrong) and when I click on 0 for an event it came up with Grand Total: 145 (which is wrong), Hidden Cost: 0 (which is also wrong) and Subtotal: 0 (which is wrong) because the guest name is still there.

 

by: dukestaTAIPosted on 2006-03-08 at 07:28:34ID: 16134596

Show me how you are calculating subtotal.

 

by: corbinnPosted on 2006-03-08 at 07:30:52ID: 16134643

<SCRIPT LANGUAGE="JavaScript">
var hiddencost = 0;
 
function addCost() {
var addName = 0;
var costPerName = 20;
var guests = new Array();
guests[0] = Math.floor(document.frmGuest.guest1first.value.length + document.frmGuest.guest1last.value.length);
guests[1] = Math.floor(document.frmGuest.guest2first.value.length + document.frmGuest.guest2last.value.length);
guests[2] = Math.floor(document.frmGuest.guest3first.value.length + document.frmGuest.guest3last.value.length);
guests[3] = Math.floor(document.frmGuest.guest4first.value.length + document.frmGuest.guest4last.value.length);
     for (var i=0;i<guests.length;i++)
     {
          if(guests[i] > 0){
          addName++
          }
         
     }
     
     hiddencost = Math.floor(addName*costPerName);
         
}

function calculate (options)
     {
     var price = new Array()
      price[0] = 1.00
      price[1] = 26.78
      price[2] = 26.78
      price[3] = 26.78
      price[4] = 26.78
      price[5] = 26.78
      price[6] = 26.78
      price[7] = 26.78
      price[8] = 39.14
      price[9] = 14.42
      price[10] = 6.18
      price[11] = 44.00
      price[12] = 167.00
      price[13] = 155.00
      price[14] = 21.00


     var product = new Array()
      product[0] = "event100"
      product[1] = "event51"
      product[2] = "event52"
      product[3] = "event53"
      product[4] = "event54"
      product[5] = "event55"
      product[6] = "event56"
      product[7] = "event57"
      product[8] = "event58"
      product[9] = "event59"
      product[10] = "event60"
      product[11] = "event62"
      product[12] = "event63"
      product[13] = "event64"
      product[14] = "event65"

var total = new Array(15)

var grandtotal = 0
var sub_total = 0

for (var i = 0; i < product.length; ++i)
     {
      total[i] = eval("options."+product[i]+"_qty.value") * price[i]
      tot = eval("options."+product[i]+"_tot")
      tot.value = total[i]

     grandtotal += total[i]
     options.sub_total.value = grandtotal
      grandtotal = grandtotal + hiddencost;
        document.write("Grand Total: " + grandtotal + "<br>Hidden Cost: " + hiddencost + "<br>Subtotal: " + sub_total);
        

     }
}

</SCRIPT>

 

by: dukestaTAIPosted on 2006-03-08 at 07:34:59ID: 16134752

Try replacing:

options.sub_total.value = grandtotal

with:

document.Reunion.sub_total.value = grandtotal;

 

by: corbinnPosted on 2006-03-09 at 11:43:18ID: 16147918

That fixes the total but when I take out the document.write("Grand Total: " + grandtotal + "<br>Hidden Cost: " + hiddencost + "<br>Subtotal: " + sub_total);
from the script it adds it wrong.  Any suggestions why?

 

by: dukestaTAIPosted on 2006-03-10 at 05:52:03ID: 16154258

If it is displaying correctly using document.write then you are changing the calculation somewhere else. Maybe after your form has been submitted? What are you doing on your process.cfm page?

 

by: corbinnPosted on 2006-03-10 at 07:11:54ID: 16154926

But I am not submitting the form and the numbers change.

Below is the process page.

<cfparam name="form.title" default="">
<cfparam name="form.suffix" default="">
<cfparam name="form.address1" default="">
<cfparam name="form.address2" default="">
<cfparam name="form.city" default="">
<cfparam name="form.state" default="NY">
<cfparam name="form.zip" default="">
<cfparam name="form.hphone" default="">
<cfparam name="form.workphone" default="">
<cfparam name="form.registration" default="">
<cfparam name="form.class" default="">
<cfparam name="form.cullum" default="">
<cfparam name="form.classcadet" default="">
<cfparam name="form.namecadet" default="">
<cfparam name="form.company" default="none">
<cfparam name="form.event1" default="">
<cfparam name="form.event2" default="">
<cfparam name="form.event3" default="">
<cfparam name="form.event4" default="">
<cfparam name="form.event5" default="">
<cfparam name="form.event6" default="">
<cfparam name="form.event7" default="">
<cfparam name="form.event8" default="">
<cfparam name="form.event9" default="">
<cfparam name="form.event10" default="">
<cfparam name="form.event11" default="">
<cfparam name="form.event12" default="">
<cfparam name="form.event13" default="">
<cfparam name="form.event14" default="">
<cfparam name="form.event15" default="">
<cfparam name="form.event16" default="">
<cfparam name="form.event17" default="">
<cfparam name="form.event18" default="">
<cfparam name="form.event19" default="">
<cfparam name="form.event20" default="">
<cfparam name="form.event21" default="">
<cfparam name="form.event22" default="">
<cfparam name="form.event23" default="">
<cfparam name="form.event24" default="">
<cfparam name="form.event25" default="">
<cfparam name="form.event26" default="">
<cfparam name="form.event27" default="">
<cfparam name="form.event28" default="">
<cfparam name="form.event29" default="">
<cfparam name="form.event30" default="">
<cfparam name="form.event31" default="0">
<cfparam name="form.event32" default="0">
<cfparam name="form.event33" default="0">
<cfparam name="form.event34" default="0">
<cfparam name="form.event35" default="0">
<cfparam name="form.event36" default="0">
<cfparam name="form.event37" default="0">
<cfparam name="form.event38" default="0">
<cfparam name="form.event39" default="0">
<cfparam name="form.event40" default="0">
<cfparam name="form.event41" default="">
<cfparam name="form.event42" default="">
<cfparam name="form.event43" default="">
<cfparam name="form.event44" default="">
<cfparam name="form.event45" default="">
<cfparam name="form.event46" default="">
<cfparam name="form.event47" default="">
<cfparam name="form.event48" default="">
<cfparam name="form.event49" default="">
<cfparam name="form.event50" default="">
<cfparam name="form.event51_qty" default="0">
<cfparam name="form.event52_qty" default="">
<cfparam name="form.event53_qty" default="">
<cfparam name="form.event54_qty" default="">
<cfparam name="form.event55_qty" default="">
<cfparam name="form.event56_qty" default="">
<cfparam name="form.event57_qty" default="">
<cfparam name="form.event58_qty" default="">
<cfparam name="form.event59_qty" default="">
<cfparam name="form.event60_qty" default="">
<cfparam name="form.event61_qty" default="">
<cfparam name="form.event62_qty" default="">
<cfparam name="form.event63_qty" default="">
<cfparam name="form.event64_qty" default="">
<cfparam name="form.event65_qty" default="">
<cfparam name="form.event66_qty" default="">
<cfparam name="form.event67_qty" default="">
<cfparam name="form.event68_qty" default="">
<cfparam name="form.event69_qty" default="">
<cfparam name="form.event70_qty" default="">
<cfparam name="form.event71_qty" default="0">
<cfparam name="form.event72_qty" default="0">
<cfparam name="form.event73_qty" default="0">
<cfparam name="form.event74_qty" default="0">
<cfparam name="form.event75_qty" default="0">
<cfparam name="form.event76_qty" default="0">
<cfparam name="form.event77_qty" default="0">
<cfparam name="form.event78_qty" default="0">
<cfparam name="form.event79_qty" default="0">
<cfparam name="form.event80_qty" default="0">
<cfparam name="form.event81_qty" default="">
<cfparam name="form.event82_qty" default="">
<cfparam name="form.event83_qty" default="">
<cfparam name="form.event84_qty" default="">
<cfparam name="form.event85_qty" default="">
<cfparam name="form.event86_qty" default="">
<cfparam name="form.event87_qty" default="">
<cfparam name="form.event88_qty" default="">
<cfparam name="form.event89_qty" default="">
<cfparam name="form.event90_qty" default="">
<cfparam name="form.event91_qty" default="">
<cfparam name="form.event92_qty" default="">
<cfparam name="form.event93_qty" default="">
<cfparam name="form.event94_qty" default="">
<cfparam name="form.event95_qty" default="">
<cfparam name="form.event96_qty" default="">
<cfparam name="form.event97_qty" default="">
<cfparam name="form.event98_qty" default="">
<cfparam name="form.event99_qty" default="">
<cfparam name="form.event100_qty" default="">
<cfparam name="form.golf1" default="0">
<cfparam name="form.golf2" default="0">
<cfparam name="form.golf3" default="0">
<cfparam name="form.golf4" default="0">
<cfparam name="form.golf5" default="0">
<cfparam name="form.bus1" default="No">
<cfparam name="form.bus2" default="No">
<cfparam name="form.bus3" default="No">
<cfparam name="form.bus4" default="No">
<cfparam name="form.bus5" default="No">
<cfparam name="form.bus6" default="No">
<cfparam name="form.bus7" default="No">
<cfparam name="form.bus8" default="No">
<cfparam name="form.bus9" default="No">
<cfparam name="form.bus10" default="No">
<cfparam name="form.bus11" default="No">
<cfparam name="form.bus12" default="No">
<cfparam name="form.bus13" default="No">
<cfparam name="form.bus14" default="No">
<cfparam name="form.bus15" default="No">
<cfparam name="form.bus16" default="No">
<cfparam name="form.bus17" default="No">
<cfparam name="form.bus18" default="No">
<cfparam name="form.bus19" default="No">
<cfparam name="form.bus20" default="No">
<cfparam name="form.titletag" default="">
<cfparam name="form.fnametag" default="">
<cfparam name="form.lnametag" default="">
<cfparam name="form.suffixtag" default="">
<cfparam name="form.classtag" default="">
<cfparam name="form.guest1title" default="">
<cfparam name="form.guest1first" default="">
<cfparam name="form.guest1last" default="">
<cfparam name="form.guest1suffix" default="">
<cfparam name="form.guest1class" default="">
<cfparam name="form.guest2title" default="">
<cfparam name="form.guest2first" default="">
<cfparam name="form.guest2last" default="">
<cfparam name="form.guest2suffix" default="">
<cfparam name="form.guest2class" default="">
<cfparam name="form.guest3title" default="">
<cfparam name="form.guest3first" default="">
<cfparam name="form.guest3last" default="">
<cfparam name="form.guest3suffix" default="">
<cfparam name="form.guest3class" default="">
<cfparam name="form.guest4title" default="">
<cfparam name="form.guest4first" default="">
<cfparam name="form.guest4last" default="">
<cfparam name="form.guest4suffix" default="">
<cfparam name="form.guest4class" default="">
<cfparam name="form.guest5title" default="">
<cfparam name="form.guest5first" default="">
<cfparam name="form.guest5last" default="">
<cfparam name="form.guest5suffix" default="">
<cfparam name="form.guest5class" default="">
<cfparam name="form.guest6title" default="">
<cfparam name="form.guest6first" default="">
<cfparam name="form.guest6last" default="">
<cfparam name="form.guest6suffix" default="">
<cfparam name="form.guest6class" default="">
<cfparam name="form.guest7title" default="">
<cfparam name="form.guest7first" default="">
<cfparam name="form.guest7last" default="">
<cfparam name="form.guest7suffix" default="">
<cfparam name="form.guest7class" default="">
<cfparam name="form.guest8title" default="">
<cfparam name="form.guest8first" default="">
<cfparam name="form.guest8last" default="">
<cfparam name="form.guest8suffix" default="">
<cfparam name="form.guest8class" default="">
<cfparam name="form.guest9title" default="">
<cfparam name="form.guest9first" default="">
<cfparam name="form.guest9last" default="">
<cfparam name="form.guest9suffix" default="">
<cfparam name="form.guest9class" default="">
<cfparam name="form.guest10title" default="">
<cfparam name="form.guest10first" default="">
<cfparam name="form.guest10last" default="">
<cfparam name="form.guest10suffix" default="">
<cfparam name="form.guest10class" default="">
<cfparam name="form.cctype" default="">
<cfparam name="form.cc_month" default="">
<cfparam name="form.cc_year" default="">
<cfparam name="form.card_code" default="">
<cfparam name="form.ccname" default="">
<cfparam name="form.billzip" default="">


<cfset id = CreateUUID()>
<cfset lastfour = right(#form.ccnum#,4)>
<cfoutput><cfset ccexp = "#form.cc_month##form.cc_year#"></cfoutput>

<cfif form.state eq "">Please hit the back button and then enter in your state.<cfabort></cfif>
<cfif form.cctype eq "">Please hit the back button and then select the credit card.<cfabort></cfif>
<cfif form.ccname eq "">Please hit the back button and please enter in the name that appears on the credit card.<cfabort></cfif>
<cfif form.cc_month eq "">Please hit the back button and select an expiration date.<cfabort></cfif>
<cfif form.cc_year eq "">Please hit the back button and select an expiration date.<cfabort></cfif>

<cf_upc_direct_authnet
login=" "
password=" "
authnet_url=" "
version=""
method=""
type=" "
test=""
duplicate_transaction_seconds=""
md5hash=""
email_header=""
email_footer=""
email_merchant=""
email_customer=""
company=""
first_name="#form.fname#"
last_name="#form.lname#"
phone=""
fax=""
email="#form.email#"
address=""
city=""
state=""
zip="#form.billzip#"
country="USA"
customer_ip="#CGI.REMOTE_HOST#"
customer_ssn=""
customer_organization_type=""
card_num="#form.ccnum#"
exp_date="#form.cc_month##form.cc_year#"
card_code="#FORM.card_code#"
amount="#form.sub_total#"
recurring_billing=""
custid=""
invoice_num="#form.account#"
description="#form.ticketnumber#"
transid=""
ship_company=""
ship_firstname=""
ship_lastname=""
ship_address=""
ship_city=""
ship_state=""
ship_zip=""
ship_country=""
check_aba_code=""
check_acct_num=""
check_acct_type=""
check_bank_name=""
check_acct_name=""
check_type=""
drivers_license_number=""
drivers_license_state=""
drivers_license_dob=""
purchase_order_num=""
tax=""
tax_exempt=""
freight=""
duty=""
md1=""
md2=""
md3=""
md4=""
md5=""
md6=""
md7=""
md8=""
md9=""
md10=""
>

<!--- Check MD5 HASH  --->
<cfif upc_results.md5hash IS NOT "">
<cfif upc_results.md5hash NEQ upc_results.x_md5_hash>
<cfset upc_results.x_response_code='3'>
<cfset upc_results.x_response_reason_text='MD5 HASH mis-match'>
</cfif>
</cfif>
<cfif upc_results.x_response_code eq 1>
<!--- Transaction Approved --->
<cfquery name="insert " datasource="xyz" dbtype="ODBC" >insert into reunion (id, title, fname, lname, suffix, address1, address2, city, state, zip, hphone, workphone, email, registration, class, cullum, classcadet, namecadet, company, event1, event2, event3, event4, event5, event6, event7, event8, event9, event10, event11, event12, event13, event14, event15, event16, event17, event18, event19, event20, event21, event22, event23, event24, event25, event26, event27, event28, event29, event30, event31, event32, event33, event34, event35, event36, event37, event38, event39, event40, event41, event42, event43, event44, event45, event46, event47, event48, event49, event50, event51_qty, event52_qty, event53_qty, event54_qty, event55_qty, event56_qty, event57_qty, event58_qty, event59_qty, event60_qty, event61_qty, event62_qty, event63_qty, event64_qty, event65_qty, event66_qty, event67_qty, event68_qty, event69_qty, event70_qty, event71_qty, event72_qty, event73_qty, event74_qty, event75_qty, event76_qty, event77_qty, event78_qty, event79_qty, event80_qty, event81_qty, event82_qty, event83_qty, event84_qty, event85_qty, event86_qty, event87_qty, event88_qty, event89_qty, event90_qty, event91_qty, event92_qty, event93_qty, event94_qty, event95_qty, event96_qty, event97_qty, event98_qty, event99_qty, event100_qty, golf1, golf2, golf3, golf4, golf5, bus1, bus2, bus3, bus4, bus5, bus6, bus7, bus8, bus9, bus10, bus11, bus12, bus13, bus14, bus15, bus16, bus17, bus18, bus19, bus20, titletag, fnametag, lnametag, suffixtag, classtag, guest1title, guest1first, guest1last, guest1suffix, guest1class, guest2title, guest2first, guest2last, guest2suffix, guest2class, guest3title, guest3first, guest3last, guest3suffix, guest3class, guest4title, guest4first, guest4last, guest4suffix, guest4class, guest5title, guest5first, guest5last, guest5suffix, guest5class, guest6title, guest6first, guest6last, guest6suffix, guest6class, guest7title, guest7first, guest7last, guest7suffix, guest7class, guest8title, guest8first, guest8last, guest8suffix, guest8class, guest9title, guest9first, guest9last, guest9suffix, guest9class, guest10title, guest10first, guest10last, guest10suffix, guest10class, cctype, ccnum, ticketnumber, account, ccexp, ccname, card_code, sub_total, billzip, lastfour)
Values ('#id#', '#form.title#', '#form.fname#', '#form.lname#', '#form.suffix#', '#form.address1#', '#form.address2#', '#form.city#', '#form.state#', '#form.zip#', '#form.hphone#', '#form.workphone#', '#form.email#', '#form.registration#', '#form.class#', '#form.cullum#', '#form.classcadet#', '#form.namecadet#', '#form.company#', '#form.event1#', '#form.event2#', '#form.event3#', '#form.event4#', '#form.event5#', '#form.event6#', '#form.event7#', '#form.event8#', '#form.event9#', '#form.event10#', '#form.event11#', '#form.event12#', '#form.event13#', '#form.event14#', '#form.event15#', '#form.event16#', '#form.event17#', '#form.event18#', '#form.event19#', '#form.event20#', '#form.event21#', '#form.event22#', '#form.event23#', '#form.event24#', '#form.event25#', '#form.event26#', '#form.event27#', '#form.event28#', '#form.event29#', '#form.event30#', '#form.event31#', '#form.event32#', '#form.event33#', '#form.event34#', '#form.event35#', '#form.event36#', '#form.event37#', '#form.event38#', '#form.event39#', '#form.event40#', '#form.event41#', '#form.event42#', '#form.event43#', '#form.event44#', '#form.event45#', '#form.event46#', '#form.event47#', '#form.event48#', '#form.event49#', '#form.event50#', '#form.event51_qty#', '#form.event52_qty#', '#form.event53_qty#', '#form.event54_qty#', '#form.event55_qty#', '#form.event56_qty#', '#form.event57_qty#', '#form.event58_qty#', '#form.event59_qty#', '#form.event60_qty#', '#form.event61_qty#', '#form.event62_qty#', '#form.event63_qty#', '#form.event64_qty#', '#form.event65_qty#', '#form.event66_qty#', '#form.event67_qty#', '#form.event68_qty#', '#form.event69_qty#', '#form.event70_qty#', '#form.event71_qty#', '#form.event72_qty#', '#form.event73_qty#', '#form.event74_qty#', '#form.event75_qty#', '#form.event76_qty#', '#form.event77_qty#', '#form.event78_qty#', '#form.event79_qty#', '#form.event80_qty#', '#form.event81_qty#', '#form.event82_qty#', '#form.event83_qty#', '#form.event84_qty#', '#form.event85_qty#', '#form.event86_qty#', '#form.event87_qty#', '#form.event88_qty#', '#form.event89_qty#', '#form.event90_qty#', '#form.event91_qty#', '#form.event92_qty#', '#form.event93_qty#', '#form.event94_qty#', '#form.event95_qty#', '#form.event96_qty#', '#form.event97_qty#', '#form.event98_qty#', '#form.event99_qty#', '#form.event100_qty#', '#form.golf1#', '#form.golf2#', '#form.golf3#', '#form.golf4#', '#form.golf5#', '#form.bus1#', '#form.bus2#', '#form.bus3#', '#form.bus4#', '#form.bus5#', '#form.bus6#', '#form.bus7#', '#form.bus8#', '#form.bus9#', '#form.bus10#', '#form.bus11#', '#form.bus12#', '#form.bus13#', '#form.bus14#', '#form.bus15#', '#form.bus16#', '#form.bus17#', '#form.bus18#', '#form.bus19#', '#form.bus20#', '#form.titletag#', '#form.fnametag#', '#form.lnametag#', '#form.suffixtag#', '#form.classtag#', '#form.guest1title#', '#form.guest1first#', '#form.guest1last#', '#form.guest1suffix#', '#form.guest1class#', '#form.guest2title#', '#form.guest2first#', '#form.guest2last#', '#form.guest2suffix#', '#form.guest2class#', '#form.guest3title#', '#form.guest3first#', '#form.guest3last#', '#form.guest3suffix#', '#form.guest3class#', '#form.guest4title#', '#form.guest4first#', '#form.guest4last#', '#form.guest4suffix#', '#form.guest4class#', '#form.guest5title#', '#form.guest5first#', '#form.guest5last#', '#form.guest5suffix#', '#form.guest5class#', '#form.guest6title#', '#form.guest6first#', '#form.guest6last#', '#form.guest6suffix#', '#form.guest6class#', '#form.guest7title#', '#form.guest7first#', '#form.guest7last#', '#form.guest7suffix#', '#form.guest7class#', '#form.guest8title#', '#form.guest8first#', '#form.guest8last#', '#form.guest8suffix#', '#form.guest8class#', '#form.guest9title#', '#form.guest9first#', '#form.guest9last#', '#form.guest9suffix#', '#form.guest9class#', '#form.guest10title#', '#form.guest10first#', '#form.guest10last#', '#form.guest10suffix#', '#form.guest10class#', '#form.cctype#', '#form.ccnum#', '#form.ticketnumber#', '#form.account#', '#ccexp#', '#form.ccname#', '#form.card_code#', '#form.sub_total#', '#form.billzip#', '#lastfour#')</cfquery>


<cflocation url="thankyou.cfm?id=#id#">

<cfelse>

<!--- Transaction Declined/Error --->

<cfinclude template="denied.cfm">

</cfif>

 

by: dukestaTAIPosted on 2006-03-10 at 07:31:55ID: 16155104

Please post your entire code for this page as you have it now and i can look to see where the problem is.  Thanks.

 

by: dukestaTAIPosted on 2006-03-10 at 09:26:47ID: 16156587

I did find this. You have a hidden text input the has avalue set to 145 which is being added to the total:

<input type="hidden" name="event100_qty" value="145">

Change the value to something else like:

<input type="hidden" name="event100_qty" value="1">

or is this supposed to add 145 dollars?

 

by: dukestaTAIPosted on 2006-03-10 at 09:53:53ID: 16156833

Does this do what you want?

<html><head><title></title>
<link rel="stylesheet" type="text/css" href="upc.css">

<SCRIPT LANGUAGE="JavaScript">
var hiddencost = 0;
 
function addCost() {
var addName = 0;
var costPerName = 20;
var guests = new Array();
guests[0] = Math.floor(document.Reunion.fnametag.value.length + document.Reunion.lnametag.value.length);
guests[1] = Math.floor(document.Reunion.guest1first.value.length + document.Reunion.guest1last.value.length);
guests[2] = Math.floor(document.Reunion.guest2first.value.length + document.Reunion.guest2last.value.length);
guests[3] = Math.floor(document.Reunion.guest3first.value.length + document.Reunion.guest3last.value.length);
guests[4] = Math.floor(document.Reunion.guest4first.value.length + document.Reunion.guest4last.value.length);
     for (var i=0;i<guests.length;i++)
     {
          if(guests[i] > 0){
          addName++
          }
         
     }
     
     hiddencost = Math.floor(addName*costPerName);
       calculate(Reunion);        
}

function calculate(options)
     {
     var price = new Array()
      price[0] = 1.00
      price[1] = 26.78
      price[2] = 26.78
      price[3] = 26.78
      price[4] = 26.78
      price[5] = 26.78
      price[6] = 26.78
      price[7] = 26.78
      price[8] = 39.14
      price[9] = 14.42
      price[10] = 6.18
      price[11] = 44.00
      price[12] = 167.00
      price[13] = 155.00
      price[14] = 21.00
      price[15] = 8.00
      price[16] = 20.00
     

     var product = new Array()
      product[0] = "event100"
      product[1] = "event51"
      product[2] = "event52"
      product[3] = "event53"
      product[4] = "event54"
      product[5] = "event55"
      product[6] = "event56"
      product[7] = "event57"
      product[8] = "event58"
      product[9] = "event59"
      product[10] = "event60"
      product[11] = "event62"
      product[12] = "event63"
      product[13] = "event64"
      product[14] = "event65"
      product[15] = "event66"
      product[16] = "event67"


var total = new Array(17)

var grandtotal = 0

for (var i = 0; i < product.length; ++i)
     {
      total[i] = eval("options."+product[i]+"_qty.value") * price[i]
      grandtotal += total[i]
             
     }
grandtotal = grandtotal + hiddencost;
options.sub_total.value = grandtotal;

}


</SCRIPT>
</head>

<body>
<table width="595" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#000000">

<!---<table><Tr><td>This site is closed.  Thank you for registering.</td></Tr></table> --->
 <form action="process.cfm" method="post" name="Reunion">



<table width="595" align="center">
<tr><td><font size="+1"><center>Please complete this <b>ENTIRE</b> form when there is a drop down box please use your mouse to select the correct response and click the <b>Submit</b> button at the bottom of the page after you review your entries.</center></font></td></tr></table>
<!--- Inside the form --->              
<table border="0" cellspacing="5" cellpadding="0" valign="TOP" width="720" align="center">

<tr>
<td height="22" width="200"><font face="Arial" size="2">Title/Rank (optional):</font></td>
<td valign="top"> <div align="left"><font face="Arial" size="2"><input type="Text" name="title" size="35" maxlength="35">
</font></div>
</td>
</tr>

<tr>
<td height="22" width="200"><font face="Arial" size="2">First Name:</font></td>
<td valign="top"> <div align="left"><font face="Arial" size="2"><input type="Text" name="fname" message="Please enter your first name." required="Yes" size="35" maxlength="35">
</font></div>
</td>
</tr>

<tr>
<td height="22" width="200"><font face="Arial" size="2">Last Name:</font></td>
<td valign="top"> <div align="left"><font face="Arial" size="2"> <input type="Text" name="lname" message="Please enter your last name." required="Yes" size="35" maxlength="35">
</font></div>
</td>
</tr>

<tr>
<td height="22" width="200"><font face="Arial" size="2">Suffix (Optional):</font></td>
<td valign="top"> <div align="left"><font face="Arial" size="2"> <input type="Text" name="suffix" size="35" maxlength="35">
</font></div>
</td>
</tr>

<tr>
<td height="23" width="200"><font face="Arial" size="2">Street Line 1:</font></td>
<td valign="top">
<div align="left"><font face="Arial" size="2">
<input type="Text" name="address1" message="Please enter your address" required="Yes" size="35" maxlength="35">
</font></div>
</td>
</tr>

<tr>
<td height="23" width="200"><font face="Arial" size="2">Street Line 2:</font></td>
<td valign="top"> <div align="left"><font face="Arial" size="2"> <input type="Text" name="address2" size="35" maxlength="35"></font></div>
</td>
</tr>

<tr>
<td height="24" width="200"><font face="Arial" size="2">City: </font></td>
<td width="195" valign="top"><div align="left"><font face="Arial" size="2"><input type="Text" name="city" message="Please enter your city." required="Yes" size="35" maxlength="35"></font></div>
</td>
</tr>

<tr>
<td width="200"><font face="Arial" size="2">State:</font></td>
<td valign="top"> <div align="left"><font face="Arial" size="2"> <select name="state">
     <option value="">State</option>
     <option value="AL">Alabama</option>
     <option value="AK">Alaska</option>
     <option value="AZ">Arizona</option>
     <option value="AR">Arkansas</option>
     <option value="CA">California</option>
     <option value="CO">Colorado</option>
     <option value="CT">Connecticut</option>
     <option value="DE">Delaware</option>
     <option value="DC">District of Columbia</option>
     <option value="FL">Florida</option>
     <option value="GA">Georgia</option>
     <option value="HI">Hawaii</option>
     <option value="ID">Idaho</option>
     <option value="IL">Illinois</option>
     <option value="IN">Indiana</option>
     <option value="IA">Iowa</option>
     <option value="KS">Kansas</option>
     <option value="KY">Kentucky</option>
     <option value="LA">Louisiana</option>
     <option value="ME">Maine</option>
     <option value="MD">Maryland</option>
     <option value="MA">Massachusetts</option>
     <option value="MI">Michigan</option>
     <option value="MN">Minnesota</option>
     <option value="MS">Mississippi</option>
     <option value="MO">Missouri</option>
     <option value="MT">Montana</option>
     <option value="NE">Nebraska</option>
     <option value="NV">Nevada</option>
     <option value="NH">New Hampshire</option>
     <option value="NJ">New Jersey</option>
     <option value="NM">New Mexico</option>
     <option value="NY">New York</option>
     <option value="NC">North Carolina</option>
     <option value="ND">North Dakota</option>
     <option value="OH">Ohio</option>
     <option value="OK">Oklahoma</option>
     <option value="OR">Oregon</option>
     <option value="PA">Pennsylvania</option>
     <option value="RI">Rhode Island</option>
     <option value="SC">South Carolina</option>
     <option value="SD">South Dakota</option>
     <option value="TN">Tennessee</option>
     <option value="TX">Texas</option>
     <option value="UT">Utah</option>
     <option value="VT">Vermont</option>
     <option value="VA">Virginia</option>
     <option value="WA">Washington</option>
     <option value="WV">West Virginia</option>
     <option value="WI">Wisconsin</option>
     <option value="WY">Wyoming</option>
</select>
</font></div><input type="hidden" name="event100_qty" value="0">
<input type="hidden" NAME="event100_tot">
</td>
</tr>
<tr>
<td height="24" width="200"><font face="Arial" size="2">Zip Code:</font></td>
<td valign="top">
<div align="left"><font face="Arial" size="2">
<input name="zip" type="text" size="35" maxlength="35" required="yes" message="Please enter your zip code." validate="zipcode">
</font></div>
</td></tr>

<tr>
<td height="24" width="200"><font size="2" face="Arial">Home Phone:<br>xxx-xxx-xxxx</font></td>
<td valign="top">
<div align="left"><font size="2" face="Arial">
<input name="hphone" type="text" size="35" maxlength="35" message="Please enter your home phone number." validate="telephone">
</font></div>
</td>
</tr>
<tr>
<td height="22" width="200"><font size="2" face="Arial">Business Phone:<br>xxx-xxx-xxxx</font></td>
<td valign="top">
<div align="left"><font size="2" face="Arial">
<input type="text" name="workphone" size="35" maxlength="35">
</font></div>
</td>
</tr>
<tr>
<td height="22" width="200"><font face="Arial" size="2">Email:</font></td>
<td valign="top">
<div align="left"><font face="Arial" size="2">
<input type="Text" name="email" message="Please enter your e-mail address." required="Yes" size="35" maxlength="35">
</font></div>
</td>

</tr>


<tr><td colspan="3"><hr></td></tr>
<tr>
<td colspan="3"> <font size="2" face="Arial">&nbsp; &nbsp; &nbsp; <b>Your Registration Bag</b> will contain the following items:<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <b>Polo Shirt</b> (Black with Class Crest, please select <select name="event1">
  <option value="" selected>Shirt Size</option>
  <option value="XS">XS</option>
  <option value="S">S</option>
  <option value="M">M</option>
  <option value="L">L</option>
  <option value="XL">XL</option>
  <option value="XXL">XXL</option>
  <option value="XXXL">XXXL</option>
</select>)<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <b>Adjustable Baseball Cap</b> (Black with Class Crest)<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <b>Key fob</b> (with Class Crest)<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <b>Ladies Silk Scarf</b> (with Class Crest)<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <b>Name tags</b> for you and your guest(s).</font>
</td>
</tr>
<tr><td colspan="3"><hr></td></tr>
</table>



<table width="595" align="center">
<tr>
<td width="295"><font size="+1" face="Arial">September 14th (Thursday):</font></td><td width="300"><font size="2" face="Arial"><select name="event62_qty" onchange="calculate(Reunion);">
  <option value="0" selected>0</option>
  <option value="1">1</option>
  <option value="2">2</option>
  <option value="3">3</option>
  <option value="4">4</option>
  <option value="5">5</option>
</select><INPUT NAME="event62_tot" type="hidden"> $44.00 per person.</font></td>
</tr>

<tr>
<td width="295"><font size="+1" face="Arial">September 15th (Friday):</font></td><td width="300"><font size="2" face="Arial"><select name="event63_qty" onchange="calculate(Reunion);">
<option value="0" selected>0</option>
  <option value="1">1</option>
  <option value="2">2</option>
  <option value="3">3</option>
  <option value="4">4</option>
  <option value="5">5</option>
</select><INPUT NAME="event63_tot" type="hidden"> $167.00 per person.</font></td>
</tr>

<tr>
<td width="295"><font size="+1" face="Arial">September 16th (Saturday):</font></td><td width="300"><font size="2" face="Arial"><select name="event64_qty" onchange="calculate(Reunion);">
<option value="0" selected>0</option>
  <option value="1">1</option>
  <option value="2">2</option>
  <option value="3">3</option>
  <option value="4">4</option>
  <option value="5">5</option>
  </select><INPUT NAME="event64_tot" type="hidden"> $155.00 per person.</font></td>
</tr>

<tr><td colspan="2"><hr></td></tr>
<tr>
<td width="300"><font size="+1" face="Arial">September 17th (Sunday):</font></td><td width="295"><font size="2" face="Arial"><select name="event65_qty" onchange="calculate(Reunion);">
  <option value="0" selected>0</option>
  <option value="1">1</option>
  <option value="2">2</option>
  <option value="3">3</option>
  <option value="4">4</option>
  <option value="5">5</option>
</select><INPUT NAME="event65_tot" type="hidden"> $21.00 per person.</font></td>
</tr>
<tr><td colspan="2"><font size="2" face="Arial">Price includes:  Full Breakfast</font></font></td></tr>
<tr><td colspan="2"><hr></td></tr>
<tr><td colspan="2"><font size="+1" face="Arial">Optional Items:</font></td></tr>
<tr><td width="300"><font size="2" face="Arial"><b>September 14th (Thursday)</b>, Lunch and Rally</font></td><td width="295"><font size="2" face="Arial"><select name="event66_qty" onchange="calculate(Reunion);">
  <option value="0" selected>0</option>
  <option value="1">1</option>
  <option value="2">2</option>
  <option value="3">3</option>
  <option value="4">4</option>
  <option value="5">5</option>
</select><INPUT NAME="event66_tot" type="hidden"> $8.00 per person.</font></td></tr>
<tr><td width="300"><font size="2" face="Arial"><b>September 17th (Sunday)</b>, Cruise on Boat</font></td><td width="295"><font size="2" face="Arial"><select name="event67_qty" onchange="calculate(Reunion);">
  <option value="0" selected>0</option>
  <option value="1">1</option>
  <option value="2">2</option>
  <option value="3">3</option>
  <option value="4">4</option>
  <option value="5">5</option>
</select><INPUT NAME="event67_tot" type="hidden"> $20.00 per person.</font></td></tr>
</table>
<table width="595" align="center">
<tr><td><hr></td></tr>
<tr>
<td><font size="+1" face="Arial">Name Badges:</font></td>
</tr>

<tr>
  <td colspan="2"><font face="Arial" size="2">Names of <b>everyone</b> attending:<br>
    (Please enter them the way that you would like to see them to appear on name badges)</font> </td>
  </tr>
</table>

<table width="720" align="center">
<tr>
<td width="50"><font face="Arial" size="1">Registrant</font></td>
<td width="50"><font face="Arial" size="1">Title:<input type="Text" name="titletag" size="30" maxlength="40" onchange="addCost()">
</font></td>
<td width="250"><font face="Arial" size="1">First Name:<input type="Text" name="fnametag" size="30" maxlength="150" onchange="addCost()">
</font>
</td>
<td width="250"><font face="Arial" size="1">Last Name:<input type="Text" name="lnametag" size="30" maxlength="150" onchange="addCost()">
</font></td>
<td width="50"><font face="Arial" size="1">Suffix:<input type="Text" name="suffixtag" size="10" maxlength="30" >
</font></td>
</tr>
<tr>
<td width="50"><font face="Arial" size="1">Guest 1</font></td>
<td width="50"><font face="Arial" size="1">Title:<input type="Text" name="guest1title" size="30" maxlength="40"><br/>
</font></td>
<td width="250"><font face="Arial" size="1">First Name:<input type="Text" name="guest1first" size="30" maxlength="150" maxlength="150" onchange="addCost()"></font></td>
<td width="250"><font face="Arial" size="1">Last Name:<input type="Text" name="guest1last" size="30" maxlength="150" onchange="addCost()">
</font></td>
<td width="50"><font face="Arial" size="1">Suffix:<input type="Text" name="guest1suffix" size="10" maxlength="30" >
</font></td>
</tr>
<tr>
<td width="50"><font face="Arial" size="1">Guest 2</font></td>
<td width="50"><font face="Arial" size="1">Title:<input type="Text" name="guest2title" size="30" maxlength="40" >
</font></td>
<td width="250"><font face="Arial" size="1">First Name:<input type="Text" name="guest2first" size="30" maxlength="150" maxlength="150" onchange="addCost()">
</font>
</td>
<td width="250"><font face="Arial" size="1">Last Name:<input type="Text" name="guest2last" size="30" maxlength="150" onchange="addCost()">
</font></td>
<td width="50"><font face="Arial" size="1">Suffix:<input type="Text" name="guest2suffix" size="10" maxlength="30" >
</font></td>
</tr>
<tr>
<td width="50"><font face="Arial" size="1">Guest 3</font></td>
<td width="50"><font face="Arial" size="1">Title:<input type="Text" name="guest3title" size="30" maxlength="40" >
</font></td>
<td width="250"><font face="Arial" size="1">First Name:<input type="Text" name="guest3first" size="30" maxlength="150" onchange="addCost()">
</font>
</td>
<td width="250"><font face="Arial" size="1">Last Name:<input type="Text" name="guest3last" size="30" maxlength="150" onchangek="addCost()">
</font></td>
<td width="50"><font face="Arial" size="1">Suffix:<input type="Text" name="guest3suffix" size="10" maxlength="30" >
</font></td>
</tr>
<tr>
<td width="50"><font face="Arial" size="1">Guest 4</font></td>
<td width="50"><font face="Arial" size="1">Title:<input type="Text" name="guest4title" size="30" maxlength="40" >
</font></td>
<td width="250"><font face="Arial" size="1">First Name:<input type="Text" name="guest4first" size="30" maxlength="150" onchange="addCost()">
</font>
</td>
<td width="250"><font face="Arial" size="1">Last Name:<input type="Text" name="guest4last" size="30" maxlength="150" onchange="addCost()">
</font></td>
<td width="50"><font face="Arial" size="1">Suffix:<input type="Text" name="guest4suffix" size="10" maxlength="30" >
</font></td>
</tr>
</table>

<table width="595" align="center">
<tr><td><hr></td></tr>
<tr>
<td><font size="+1" face="Arial">Additional Memorabilia Items:</font></td>
</tr>
</table>
<table width="595" align="center">

<tr>
<td colspan="2"><font size="2" face="Arial"><b>Polo Shirt</b><br>$26.78 per shirt</font></td></tr>
<tr><td width="295"><font size="2" face="Arial">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; X-Small</font></td>
<td width="300"><select name="event51_qty" onchange="calculate(Reunion);">
  <option value="0" selected>0</option>
  <option value="1">1</option>
  <option value="2">2</option>
  <option value="3">3</option>
  <option value="4">4</option>
  <option value="5">5</option>
</select><INPUT NAME="event51_tot" type="hidden"></td>
</tr>
<tr><td width="295"><font size="2" face="Arial">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Small</font></td>
<td><select name="event52_qty" onchange="calculate(Reunion);">
  <option value="0" selected>0</option>
  <option value="1">1</option>
  <option value="2">2</option>
  <option value="3">3</option>
  <option value="4">4</option>
  <option value="5">5</option>
</select><INPUT NAME="event52_tot" type="hidden"></td></tr>
<tr><td width="295"><font size="2" face="Arial">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Medium</font></td>
<td><select name="event53_qty" onchange="calculate(Reunion);">
  <option value="0" selected>0</option>
  <option value="1">1</option>
  <option value="2">2</option>
  <option value="3">3</option>
  <option value="4">4</option>
  <option value="5">5</option>
</select><INPUT NAME="event53_tot" type="hidden"></td></tr>
<tr><td width="295"><font size="2" face="Arial">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Large</font></td>
<td><select name="event54_qty" onchange="calculate(Reunion);">
  <option value="0" selected>0</option>
  <option value="1">1</option>
  <option value="2">2</option>
  <option value="3">3</option>
  <option value="4">4</option>
  <option value="5">5</option>
</select><INPUT NAME="event54_tot" type="hidden"></td></tr>
<tr><td width="295"><font size="2" face="Arial">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; X-Large</font></td>
<td><select name="event55_qty" onchange="calculate(Reunion);">
  <option value="0" selected>0</option>
  <option value="1">1</option>
  <option value="2">2</option>
  <option value="3">3</option>
  <option value="4">4</option>
  <option value="5">5</option>
</select><INPUT NAME="event55_tot" type="hidden"></td></tr>
<tr><td width="295"><font size="2" face="Arial">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; XX-Large</font></td>
<td><select name="event56_qty" onchange="calculate(Reunion);">
  <option value="0" selected>0</option>
  <option value="1">1</option>
  <option value="2">2</option>
  <option value="3">3</option>
  <option value="4">4</option>
  <option value="5">5</option>
</select><INPUT NAME="event56_tot" type="hidden"></td></tr>
<tr><td width="295"><font size="2" face="Arial">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; XXX-Large</font></td>
<td><select name="event57_qty" onchange="calculate(Reunion);">
  <option value="0" selected>0</option>
  <option value="1">1</option>
  <option value="2">2</option>
  <option value="3">3</option>
  <option value="4">4</option>
  <option value="5">5</option>
</select><INPUT NAME="event57_tot" type="hidden"></td></tr>
<tr>
<td width="295"><font size="2" face="Arial"><b>Ladies Silk Scarf</b><br>$39.14 each</font></td>
<td><select name="event58_qty" onchange="calculate(Reunion);">
  <option value="0" selected>0</option>
  <option value="1">1</option>
  <option value="2">2</option>
  <option value="3">3</option>
  <option value="4">4</option>
  <option value="5">5</option>
</select><INPUT NAME="event58_tot" type="hidden"></td>
</tr>
<tr>
<td width="295"><font size="2" face="Arial"><b>Baseball Cap</b><br>$14.42 each</font></td>
<td><select name="event59_qty" onchange="calculate(Reunion);">
  <option value="0" selected>0</option>
  <option value="1">1</option>
  <option value="2">2</option>
  <option value="3">3</option>
  <option value="4">4</option>
  <option value="5">5</option>
</select><INPUT NAME="event59_tot" type="hidden"></td>
</tr>
<tr>
<td width="295"><font size="2" face="Arial"><b>Key Fob</b><br>$6.18 each</font></td>
<td><select name="event60_qty" onchange="calculate(Reunion);">
  <option value="0" selected>0</option>
  <option value="1">1</option>
  <option value="2">2</option>
  <option value="3">3</option>
  <option value="4">4</option>
  <option value="5">5</option>
</select><INPUT NAME="event60_tot" type="hidden"></td>
</tr>

</table>




<hr>
<table width="595" align="center">
<tr>
<td colspan="2"><font size="+1" face="Arial">Payment Information:</font>&nbsp; &nbsp;</td>
</tr>

<tr>
<td colspan="2"><strong><font color="#FF0000">Please fill in applicable fields.</font></strong> &nbsp; &nbsp;</td>
</tr>


<tr>
<td><font size="2" face="Arial">Credit Card:</font></td>
<td width="327"> <font size="2" face="Arial"><b>Visa</b>
    <input type="radio" name="cctype" value="Visa"> &nbsp; &nbsp; &nbsp; &nbsp;
 <b>MasterCard</b>
<input type="radio" name="cctype" value="mc"> &nbsp; &nbsp;
</font>&nbsp; &nbsp;</td><td rowspan="5">
</td>
</tr>
<tr>
<td width="327"><font size="2" face="Arial">Card Number: </font></td>
<td width="327"><font size="2" face="Arial">
<input type="text" name="ccnum" size="35" maxlength="34" required="yes" validate="creditcard"></font></td>
</tr>
<tr>
<td><font size="2" face="Arial">Expiration Date:</font></td>
<td><font size="2" face="Arial">
<select name="cc_month">
                                   <option value="01">01</option>
                                   <option value="02">02</option>
                                   <option value="03">03</option>
                                   <option value="04">04</option>
                                   <option value="05">05</option>
                                   <option value="06">06</option>
                                   <option value="07">07</option>
                                   <option value="08">08</option>
                                   <option value="09">09</option>
                                   <option value="10">10</option>
                                   <option value="11">11</option>
                                   <option value="12">12</option>
          </select>
                         /
                              <select name="cc_year">
                                   
                    <option value="2006">2006</option>
                    <option value="2007">2007</option>
                    <option value="2008">2008</option>
                    <option value="2009">2009</option>
                    <option value="2010">2010</option>
                    <option value="2011">2011</option>
                    <option value="2012">2012</option>
                    <option value="2013">2013</option>
                    <option value="2014">2014</option>
                              </select>
                                                  </font></td>
</tr>
<tr>
<td><font face="Arial" size="2">Cardholder's Name:<br>(as it appears on the card)</font></td>
<td><font face="Arial" color="#000000" size="2">
<input type="text" name="ccname" size="35" maxlength="60">
</font></td>
</tr>
 <tr>
    <td>Card Code: <a href="#" onClick="window.open('pop_card_code.htm','','width=650,height=400')">What is this?</a></td>
    <td>
      <input type="text" name="card_code" size="10">
    </td>
  </tr>
  </table>
<table width="595" align="center"><tr>
<td><font face="Arial" size="2">By clicking on the Submit button below, I authorize my reservation to be charged to my credit card  for $<INPUT NAME="sub_total" TYPE="text" size="10">.</font></td>
</tr>
</table><hr>
<table width="595" align="center">
<tr>
<td height="2">
<div align="center"><font face="Arial">
<input type="submit"  value="Submit"  name="submit">
</font></div>
</td>
</tr>
</table>
</form>
</body>
</html>

 

by: corbinnPosted on 2006-03-10 at 10:14:33ID: 16157002

YES!!!  Thank you.  How do I award you all the points????

 

by: dukestaTAIPosted on 2006-03-10 at 10:16:17ID: 16157014

Just click accept answer to my last post and give a grade of A if you liked the answer.

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...