Forms

This week we learned about two dimensional, associative arrays and more about forms.
The book table uses a 2d array and returns a loop.
The contact form returns error messages to the user if the fields are not completed properly.
A new spin on the lucky dice game from week two. Check the Game link.

EDT
5.2.8

Source Code for Current Page

<?php $siteName 'LzyDaz Designs<br /><em><span class="white-text">www.lzydaz.com</span></em>'?>
<?php $currentWeek
="week5"?>

<!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" xml:lang="en" lang="en">
<head>
<title>Week Five</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<link href="common/site.css" rel="stylesheet" type="text/css" />
<link href="<?php ($_SERVER['DOCUMENT_ROOT']); ?>/lvs/php101/week5/common/week5.css" rel="stylesheet" type="text/css" />
</head>

<body>

<div id="head">
<p><?php echo $siteName?></p>
</div><!--close #head-->

<div id="wrap">
<div id="content">

<div id="bar-nav">
<?php include($_SERVER['DOCUMENT_ROOT'] . '/lvs/php101/includes/bar-nav.php'); ?>
</div><!--close bar-nav-->

<div id="navcontainer">
<ul> 
<li><a href="week5/books.php" title="Table">Books</a></li>
<li><a href="week5/dice.php" title="Dice Game Revised">Game</a></li>
<li class="last"><a href="week5/contact.php" title="Contact Form">Contact</a></li>
</ul>
</div><!-- close navcontainer -->

<div id="right-container">
<h1>Forms</h1>
<p>This week we learned about two dimensional, associative arrays and more about forms.<br />
The book table uses a 2d array and returns a loop.<br />
The contact form returns error messages to the user if the fields are not completed properly.<br />
A new spin on the lucky dice game from week two. Check the Game link.

</p>
</div><!--close #right-container-->

</div><!--close #content-->
</div><!--close #wrap-->

<div id="foot">
<?php include($_SERVER['DOCUMENT_ROOT'] . '/lvs/php101/includes/copyright.php'); ?>
</div><!--close #foot-->

<div id="source">
<?php echo date("T"); ?>
<hr />
<?php echo phpversion(); ?>
<hr />
<p>Source Code for Current Page</p>
<?php show_source(basename($_SERVER['PHP_SELF'])); ?>
</div><!--close #source-->

</body>
</html>