hi im new here and i have just started learning php but im having trouble with somthin i was hopeing yall could help me with it.
i am having trouble figureing out a way to add the two answers form the if and else statements heres the script
<?php
$hrs = $POST['hrs'];
$hrs2 = $POST['hrs2'];
$wage = $_POST['wage'];
$money = $hrs$wage;
$overtime = ($wage / 2)+ $wage ;
$amountwo = ($hrs-40)$overtime+40$wage;
$money2 = $hrs2$wage;
$amountwo2 = ($hrs2-40)$overtime+40$wage;
?>
<font size="3" color="00ff00" >
1st weeks pay:
</font>
<font size="4" color="00ff00" >
<?php
if ($hrs < 40)
{echo $money;}
else
{echo $amountwo;}
?>
</font>
<font size="3" color="00ff00" >
<br><br>
2nd weeks pay:
</font>
<font size="4" color="00ff00" >
<?php
if ($hrs2 < 40)
{echo $money2;}
else
{echo $amountwo2;}
?>
i need the answers from both the if and else statements to b added together i know thats possible but i dont know how could yall plz help
thanks
nightstalker