| | |
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 |
apache api array auto beginner binary broken cache cakephp checkbox class cms code codingproblem cron curl customizableitems database date display dynamic echo email error errorlog file files filter folder form format forms forum function functions gc_maxlifetime global google headmethod href htaccess html image include insert ip javascript joomla limit link login mail malfunctioning memmory memory menu method mlm multiple mysql nodes oop parameter parsing paypal pdf php phpmysql popup query radio random recursion recursiveloop remote script search select server sessions snippet source space sql static survey syntax system table trouble tutorial up-to-date update upload url validator variable video web youtube





