title: Calculate PHP Values
body: <p>So if someone fills my form i will get the results of what they filled, but if they choose some numbers in the select form like 2 persons, 2 kids, 1 baby, then i want to send the total output (5) in the php message, Right now is sending only the values:</p>
  
  <pre><code>$message = 
  'Persons: ' . $_POST['pers']. "\n" .
  'Kids: ' . $_POST['kids']. "\n" .
  'Babys: ' . $_POST['babys']. "\n" .
  </code></pre>
  
  <p>So how send the total output of the selected values? 
  And show it like something like this:</p>
  
  <pre><code>'Total person: ' . $_POST['totalpersons']. "\n" .
  </code></pre>
  
  <p>So i mean: If a user select 2 persons, 2 kids and 1 baby's in a form , Then i want to post the TOTAL Amount of Persons, so that is : ( 3+2+1 = <strong>5</strong> )  I want only echo the total persons so that is : <strong>5</strong></p>
  
  <p>This is the solution for me :</p>
  
  <pre><code>$totalpersons = $_POST['pers'] + $_POST['kids'] + $_POST['babys'];
  
  'Total persons: ' . $totalpersons . '\n' .
  </code></pre>