[solved] Formbuilder: Calculating Total from checked Checkboxes
Posted: Mon May 24, 2010 4:06 pm
Good day everyone,
I would appreciates suggestions for the following: I have a form where clients can select the product that they want (checkbox). Products have a cost. I am trying to display the total of the selected checkboxes.
Here is what I have tried so far: Under value when checked I placed the price of the item. However that messed up my Confirmation page as it replaced the names of the checkboxes with the price.
Any other suggestions?
----------------------------------------------
Cms Version: 1.7
Installed Modules:
* CMSMailer: 1.73.14
* FileManager: 1.0.2
* MenuManager: 1.6.2
* ModuleManager: 1.3.3
* News: 2.10.4
* nuSOAP: 1.0.1
* Printing: 1.0.4
* Search: 1.6.2
* ThemeManager: 1.1.1
* TinyMCE: 2.7.0
* CTLModuleMaker: 1.8.9.3
* CGExtensions: 1.18.7
* SiteMapMadeSimple: 1.2.1
* CGExtensions: 1.18.7
* XContent: initial release - BETA 3
* Gallery: 1.3
* Bookmarks: 2.0.1
* Statistics: 1.0.1
* Questions: 1.0.3
* FormBuilder: 0.6.2
* Glossary: 0.6.8
* CGSimpleSmarty: 1.4.4
* CGGoogleMaps: 1.4.1
* ModuleMaker: 0.3.1
* phpids: 1.4.7
* CGCalendar: 1.5.2
* FrontEndUsers: 1.8.2
* UserDirectory: 1.0-svn
* ModuleXtender: 1.0.0
* NFS: 1.0
Config Information:
* php_memory_limit:
* process_whole_template: false
* max_upload_size: 128000000
* default_upload_permission: 664
* assume_mod_rewrite: true
* page_extension: .html
* internal_pretty_urls: false
* use_hierarchy: true
Php Information:
* phpversion: 5.3.1
* md5_function: On (True)
* gd_version: 2
* tempnam_function: On (True)
* magic_quotes_runtime: Off (False)
* E_STRICT: 0
* E_DEPRECATED: 0
* memory_limit: 128M
* max_execution_time: 60
* safe_mode: Off (False)
* session_save_path: C:\xampp\tmp (0777)
* session_use_cookies: On (True)
Server Information:
* Server Api: apache2handler
* Server Db Type: MySQL (mysql)
* Server Db Version: 5.1.41
----------------------------------------------
I would appreciates suggestions for the following: I have a form where clients can select the product that they want (checkbox). Products have a cost. I am trying to display the total of the selected checkboxes.
Here is what I have tried so far: Under value when checked I placed the price of the item. However that messed up my Confirmation page as it replaced the names of the checkboxes with the price.
Any other suggestions?
----------------------------------------------
Cms Version: 1.7
Installed Modules:
* CMSMailer: 1.73.14
* FileManager: 1.0.2
* MenuManager: 1.6.2
* ModuleManager: 1.3.3
* News: 2.10.4
* nuSOAP: 1.0.1
* Printing: 1.0.4
* Search: 1.6.2
* ThemeManager: 1.1.1
* TinyMCE: 2.7.0
* CTLModuleMaker: 1.8.9.3
* CGExtensions: 1.18.7
* SiteMapMadeSimple: 1.2.1
* CGExtensions: 1.18.7
* XContent: initial release - BETA 3
* Gallery: 1.3
* Bookmarks: 2.0.1
* Statistics: 1.0.1
* Questions: 1.0.3
* FormBuilder: 0.6.2
* Glossary: 0.6.8
* CGSimpleSmarty: 1.4.4
* CGGoogleMaps: 1.4.1
* ModuleMaker: 0.3.1
* phpids: 1.4.7
* CGCalendar: 1.5.2
* FrontEndUsers: 1.8.2
* UserDirectory: 1.0-svn
* ModuleXtender: 1.0.0
* NFS: 1.0
Config Information:
* php_memory_limit:
* process_whole_template: false
* max_upload_size: 128000000
* default_upload_permission: 664
* assume_mod_rewrite: true
* page_extension: .html
* internal_pretty_urls: false
* use_hierarchy: true
Php Information:
* phpversion: 5.3.1
* md5_function: On (True)
* gd_version: 2
* tempnam_function: On (True)
* magic_quotes_runtime: Off (False)
* E_STRICT: 0
* E_DEPRECATED: 0
* memory_limit: 128M
* max_execution_time: 60
* safe_mode: Off (False)
* session_save_path: C:\xampp\tmp (0777)
* session_use_cookies: On (True)
Server Information:
* Server Api: apache2handler
* Server Db Type: MySQL (mysql)
* Server Db Version: 5.1.41
----------------------------------------------