Help with Session Variable/Checkboxes

Hello all, First time posting here.

What I have is a form and a session variable called “total” and have set it equal to 70. I have 3 check boxes (values of 15,10,10) in the form also. What i’m trying to achieve here is to have “total” change on and off check of the checkboxes. For instance, when you click on the first check box, the total changes to 85. When you uncheck it, it goes back to 70. If you check all 3, the total would be 105.

Do any of you know of a solution to this problem?

Thanks

Cmoore

if you take the total and add or subtract based on the “Checked” status then restore that value in the session variable you should be fine.

What problem are you running into?

well, i’ll be honest, I’m not much of a developer and I’m trying to learn PHP and with my regular job, its quite slow. So to answer your question, it’s just not working mostly due to the fact I have no idea what I’m doing. Is there a quick sample code you might know and could share?

thank you so much,

Cmoore

Sponsor our Newsletter | Privacy Policy | Terms of Service