Week 2

Week 2 has provided a mixture of challenges and fun. I have enjoyed the whole thing, and, as other classmates have done I too have found myself waking in the middle of the night with solutions popping into my head...sometimes right, sometimes not!

 


<?php 
//Here is where I will list my variables

    
$myName "R. Joanne Johnson";
    
$pageTitle "PHP for Web Developers 101";
    
$instructors "Jeramie Risinger and Bean Fairbanks";
    
//I experimented with making a link as part of a variable. At first, it didn't work because of the sets of double quotes, so I             tried changing the double quotes inside the link to single. It works!!! 
    
$theSchool "<a href='http://www.lvsonline.com/index.shtml' target='_blank'>LVS</a>";
 
?>
<!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=utf-8" />
<title><?php echo $pageTitle ?> </title>

<link href="common/week2.css" rel="stylesheet" type="text/css" />
<link href="common/week2a.css" rel="stylesheet" type="text/css" />
</head>

<body class="oneColElsCtrHdr">

<div id="container">
  <?php include('includes/headerwk2.php'); ?>
  
   
  <div id="mainContent">
    <div id="navDiv">
      <?php include('includes/nav.php'); ?>
    </div>
    <h1>Week 2</h1>
    <div id="navDiv2">
      <?php include('includes/week2link.php'); ?>
    </div>
    <p>Week 2 has provided a mixture of challenges and fun. I have enjoyed the whole thing, and, as other classmates have done I too have found myself waking in the middle of the night with solutions popping into my head...sometimes right,  sometimes not!</p>
    <h2>&nbsp;</h2>
  <!-- end #mainContent --></div>
 
    <?php include('includes/footer.php'); ?></div>
    <hr />
    <div id="showSource">
    <?php show_source('week2.php'); ?> 
    <hr />
    <?php show_source('includes/headerwk2.php'); ?>
    <hr />
    <?php show_source('includes/week2link.php'); ?> 
    <hr />
    <?php show_source('includes/date.php'); ?> 
    <hr />
    <?php show_source('includes/footer.php'); ?> 
    
    </div>

</body>
</html>


  <div id="header">
      <h1><?php echo $pageTitle ?></h1> 
     presented by 
    <?php echo $instructors ?> at <?php echo $theSchool ?>
    <?php include('includes/date.php'); ?> 
     <!-- end #header -->
  </div>

<h3>Links to the Work</h3>
    <ul>
      <li><a href="calculations1.php">Calculations</a></li>
      <li><a href="games.php">Games</a></li>
      <li><a href="goldy.php">Goldy's Place</a></li>
      <li><a href="random.php">Random Image</a></li>
      <li><a href="random2.php">Random Image 2</a></li>
      <li><a href="game2.php">Game 2</a></li>
    </ul>

<p align="center">  Today's day, date and time are
<?php 
echo date("l, F jS,  Y g:i:A");
?></p>

<div id="footer">
    
    <p align="center">Copyright R. Joanne Johnson, <?php echo date ("Y"?></p>
    <p align="center"> <a href="http://jigsaw.w3.org/css-validator/"> <img style="border:0;width:88px;height:31px" src="http://jigsaw.w3.org/css-validator/images/vcss" alt="Valid CSS!" /> </a> <a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0 Transitional" height="31" width="88" /></a> </p>

    <!-- end #footer -->
     </div>