<html> <head> <title>comments.php</title> </head> <body> <?php /* Date: 01/31/2006 Programmer: Manuel Chagoyan Purpose: To add up the amount owed to me by my students. */
$number1=10; //This is the $10 bucks Jenah owes me. $number2=15; //This is the $15 bucks David owes me. $number3=5; #This is the 5 bucks Ethan owes me (plus interest).
$total=$number1+$number2+$number3; //This creates a variable to hold total owed.
/* This section prints to the browser. It concatinates text, html, and php variable output. */
print("<p>The sum of the numbers is ".$total."</p>");
print("I have ".($number1+$number2+$number3)." dollars!");