View Full Version : checkbox value
shas1280
08-31-2010, 07:56 AM
Hi,
how can i get the value from the database and it will calculate the total when i selecting check box's. can any one help me. i need the db table structure and the php code. can anyone help me please??
Thank you
I think you need to be a bit more explicit. Do you mean the total number of check boxes or the total of the values taken from the database? What exactly are you trying to do? People can't help you if they have nothing to go on.
shas1280
09-01-2010, 09:54 AM
Please check the link www.getreal.com.kw/cart .
This is a simple Html, javascript function to calculate the total value of the item price by selecting the check box's
so far its good,but i need the grand total as i mentioned black tabs in the bottom. i was trying to find out the script for getting the grand total, but i couldn't get. now i am trying to do this with Php. I hope u know what i am trying to say.
Thank you
if you're going to do it with php, you have to send the information to the server first. Your forms don't have any action right now. Then, you could take the values of all the checked items, add them up, and return the total.
However, if you want the grand total to appear on the page as the user clicks, like your individual totals do now, then you need to use javascript. PHP only works on the server, and can't do anything after the webpage has been sent to the user.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.