I have checkboxes with an amount as values.
Can someone help on how to fine the total of
checkbox values and sent to an email using php?
Recommended Answers
Jump to PostPut the check boxes in a form
<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:
<? if ($go) { $add_this=$_POST['five']; $add_that=$_POST['ten']; $total=$add_this+$add_that; echo $total; } ?>
All 4 Replies
techniner
2
Posting Pro
egoleo
0
Newbie Poster
techniner
2
Posting Pro
joshisumitnet
-1
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.