The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Help with assigning variables

I know just enough about JavaScript to be dangerous and I am not sure I have even named the Topic correctly but here goes.

I have a page that is calculating a form Moving Company and once this form is filled out and submitted my client and the visitor get an identical email (HTML FORMAT) that shows this same form filled out but no check boxes. So the few fields that do have check boxes need to indicate that the check boxes have been checked.

Example of field on web site:

Example of Field on Email:
I want to add the word "Plasma" or "No Plasma" to the description.

So I am using the checkbox for two reasons.
1. To add a value to the calculations (to get a total for the move)
2. To tell my client weather or not this person choose the added service.

I could just put the assigned number on the email and the fact that it is there would tell my client that they want the service but the number represents what he is actually charging the client and he does not want them to see that number. This is why I need to have a string assigned to it at some point.

On the quotesheet.html page in the JavaScript function calc() I added:

Code:

if (plasma30 = 10) p30 = "Plasma";
else p30 = "No Plasma";

But that did not work. So am I on the right track and my syntax is bad or am I way off.