What does the period right after $total mean?
PHP:
echo $total."<br><br>";
it's a concatenator, basically allows you to break out of a string and push an echo without having to put in several lines of code, example:
<?php
echo "Hello, ". $yourname ." i am from the planet ". $planet .".";
// otherwise, you'd have to do:
echo "Hello, ";
echo $yourname;
echo "i am from the planet ";
echo $planet;
echo ".";
?>
see how much simpler it makes it?