3 Replies Latest reply: Mar 5, 2009 1:16 PM by Newsgroup_User RSS

    Addition in PHP

    pbsum83 Community Member
      I have a simple PHP registration form, with a couple option boxes for different prices. I want to use the $_POST command to send me the total price. I know this is very simple, but I can't get it to work.

      I know this obviously doesn't work, but what's the proper way of doing this to add these three variables up to get one total number:

      $total = $_POST[$number1 + $number2 + $number3] ;