| | |
checkbox values calculation with PHP
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: May 2005
Posts: 508
Reputation:
Solved Threads: 19
Put the check boxes in a form
Then Above that you put:
PHP Syntax (Toggle Plain Text)
<form method="post"> <input TYPE="checkbox" NAME="five" VALUE="5" checked>Five <input TYPE="checkbox" NAME="ten" VALUE="10" checked>Ten <input type="submit" name="go" value"Submit This"> <form>
Then Above that you put:
PHP Syntax (Toggle Plain Text)
<? if ($go) { $add_this=$_POST['five']; $add_that=$_POST['ten']; $total=$add_this+$add_that; echo $total; } ?>
•
•
Join Date: May 2005
Posts: 508
Reputation:
Solved Threads: 19
Yes. Paste me your code and I will do it for you.
![]() |
Similar Threads
- PHP Checkbox (PHP)
- passing checkbox value to next page (PHP)
- problem in passing multiple checkbox values (ASP)
- checkbox values (JSP)
- Fun with Forms (PHP)
Other Threads in the PHP Forum
- Previous Thread: Search two tables
- Next Thread: Using TCPDF or UFPDF to generate pdf files in php
| Thread Tools | Search this Thread |
# 5.2.10 access action address apache api array auto autoincrement broken cakephp checkbox class classes clean clients cms code cron curl database date dehasher destroy directory dissertation domain dropdown dynamic echo$_get[x]changingitintovariable... email encode error errorlog fairness fatalerror file folder form function functions href htaccess html image include indentedsubcategory ip javascript joomla legislation limit link load local login mail masterthesis memberships menu methods multiple multipletables mysql mysqlquery newsletters oop open passwords paypal pdf persist php popup provider query radio random script search secure server sessions simple sockets source space spam sql system table tutorial upload url user variable voteup web youtube





