Greetings from, Ohio
This week we have learned about superglobal arrays and the post method.
We also used isset to test our variables.
Bonnie
50¢
LzyDaz Designs
www.lzydaz.com
Greetings from, Ohio
This week we have learned about superglobal arrays and the post method.
We also used isset to test our variables.
Bonnie
50¢
Bonnie Lincicome © 2010 All Rights Reserved
This page was last updated on December 14, 2008 08:01:35
Show Source for Navigation Bar
<?php $currentPage = basename ($_SERVER['PHP_SELF']); ?>
<ul>
<li>
<a href="<?php ($_SERVER['DOCUMENT_ROOT']); ?>/lvs/php101/index.php" title="PHP Course Syllabus"
<?php
if($currentPage=="index.php"){
echo 'id="current"';
}
?>
>Index</a><!--close anchor tag-->
</li>
<li>
<a href="<?php ($_SERVER['DOCUMENT_ROOT']); ?>/lvs/php101/week1.php" title="Week One"
<?php
if($currentPage=="week1.php"){
echo 'id="current"';
}
?>
>About</a><!--close anchor tag-->
</li>
<li>
<a href="<?php ($_SERVER['DOCUMENT_ROOT']); ?>/lvs/php101/week2.php" title="Week Two"
<?php
if($currentPage=="week2.php"){
echo 'id="current"';
}
?>
>Photos</a><!--close anchor tag-->
</li>
<li>
<a href="<?php ($_SERVER['DOCUMENT_ROOT']); ?>/lvs/php101/week3.php" title="Week Three"
<?php
if($currentPage=="week3.php"){
echo 'id="current"';
}
?>
>Store</a><!--close anchor tag-->
</li>
<li>
<a href="<?php ($_SERVER['DOCUMENT_ROOT']); ?>/lvs/php101/week4.php" title="Week Four"
<?php
if($currentPage=="week4.php"){
echo 'id="current"';
}
?>
>Cards</a><!--close anchor tag-->
</li>
<li>
<a href="<?php ($_SERVER['DOCUMENT_ROOT']); ?>/lvs/php101/week5.php" title="Week Five"
<?php
if($currentPage=="week5.php"){
echo 'id="current"';
}
?>
>Forms</a><!--close anchor tag-->
</li>
<li>
<a href="<?php ($_SERVER['DOCUMENT_ROOT']); ?>/lvs/php101/week6.php" title="Week Six"
<?php
if($currentPage=="week6.php"){
echo 'id="current"';
}
?>
>Database</a><!--close anchor tag-->
</li>
</ul>
Source Code for Week 4
<?php $siteName = 'LzyDaz Designs<br /><em><span class="white-text">www.lzydaz.com</span></em>'; ?>
<?php include('includes/timeOfDay3.php'); ?>
<?php $currentWeek="week4"; ?>
<!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 Four</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<link href="common/site.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="week4/stamp.php" title="Get a Stamp!">Stamps</a></li>
<li class="last"><a href="week4/card.php" title="Post a card!">Post Card</a></li>
</ul>
</div><!-- close navcontainer -->
<div id="card">
<div id="card-left">
<p>Greetings from, Ohio</p>
<p>This week we have learned about superglobal arrays and the post method.<br />
We also used isset to test our variables.</p>
<p>Bonnie</p>
</div><!--close card-left-->
<div id="cardImg">
<p>50¢</p>
</div><!--close #card-img-->
</div><!--close #card-->
</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>Show Source for Navigation Bar</p>
<?php show_source('includes/bar-nav.php'); ?>
<hr />
<p>Source Code for Week 4</p>
<?php show_source(basename($_SERVER['PHP_SELF'])); ?>
</div><!--close #source-->
</body>
</html>