Comments
comments.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<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!");
?>
</body>
</html>