Week 4

About Week 4

It is difficult for anyone who might look at these few small pages to realize the amount of time, and I may add, the frustration and struggle which has gone into creating them. My total ignorance of just about everything to do with PHP and how it relates, not only to itself, but also to xhtml and CSS has been while at the same time struggling with CSS and validation with the W3C has been torturous! And there are 2 weeks more to complete. The upside is that I have learned.

As an example, I did not understand that one form could contain different form objects and all work from one submit button. I lost many hours on just a simple thing like that, trying to get all actions to go to one page. A simple idea, but it wasn't so easy when you just don't know! Now I do, but I learned the hard way.

I hope to someday redo my calculator...just cannot do it now.

<?php //my variables and stuff
    //read in my variables
    
$title "Week 4";
    
$myName "R. Joanne Johnson";
    
$pageTitle "PHP for Web Developers 101";
    
$instructors "Jeramie Risinger and Bean Fairbanks";
    
$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 $title ?> </title>
<style type="text/css">

#current {
    font-family: "Bickham Script Pro Regular", "Bradley Hand ITC", Calibri;
    color: #FFFFFF;
    background-color: #9AABD7;
    text-decoration: none;
    font-size: 40px;
}

</style>

<link href="common/week4.css" rel="stylesheet" type="text/css" />

</head>

<body class="oneColLiqCtrHdr">

<div id="container">
  
      <?php include("./includes/header.php"); ?>
  
  <div id="mainContent">
    <div id="navDiv">
      <?php include("includes/nav.php"); ?>
    </div>
   
<h2><?php echo $title ?></h2>



 

<div id="innerDiv">
  <h3>About Week 4  </h3>
 
  <p class="pnormal">It is difficult for anyone who might look at these few small pages to realize the amount of time, and I may add, the frustration and struggle which has gone into creating them. My total ignorance of just about everything to do with PHP and how it relates, not only to itself, but also to xhtml and CSS has been while at the same time struggling with CSS and validation with the W3C has been torturous! And there are 2 weeks more to complete. The upside is that I have learned.</p>
  <p class="pnormal">As an example, I did not understand that one form could contain different form objects and all work from one submit button. I lost many hours on just a simple thing like that, trying to get all actions to go to one page. A simple idea, but it wasn't so easy when you just don't know! Now I do, but I learned the hard way.</p>
  <p class="pnormal">I hope to someday redo my calculator...just cannot do it now.</p>


  
  <?php $currentPage basename ($_SERVER['PHP_SELF']); ?>
<table width="375" cellspacing="2" cellpadding="2" align="center">
  <tr>
    <td class="menu" <?php if($currentPage=="week4.php") {
   echo 
'id="current"';      
            }
        
?> ><a href="week4.php">Week4 </a></td>
        
    <td class="menu" <?php if($currentPage=="cardMaker.php") {
   echo 
'id="current"';      
            }
        
?> ><a href="cardmaker.php">Card </a></td>
    
     <td class="menu" <?php if($currentPage=="holidayChooser.php") {
   echo 
'id="current"';      
            }
        
?> ><a href="holidayChooser.php">Favorites</a></td>
     
      <td class="menu" <?php if($currentPage=="calc2.php") {
   echo 
'id="current"';      
            }
        
?> ><a href="../week4/calc2.php">Calculator</a></td>
   
   
  </tr>
</table>

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

   <div class="showSource">
   <?php include("includes/footer.php"); ?> 
   <div id="showSource">
     <?php show_source('week4.php'); ?>
     <hr />
     <?php show_source('includes/nav.php'); ?>
     <hr />
    <?php show_source('includes/header.php'); ?>
   
    </div>

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

     
</body>
</html>

 <div id="nav"><?php 
//my navigation 
echo("<p><a href='index.php'>Home</a> | ");//beginning paragraph

for($i=1$i<=6$i=$i+1){    
    
    echo(
"<a href='week".$i.".php'>Week ".$i."</a> | ");
    
}
//end for loop

echo("</p>");//closing paragraph

?></div>


<div id="header">
    <h1><?php echo $pageTitle  ?> <br />
      at LVS<br />
      <span class="headerspan" >Lesson prepared by <?php echo  $myName?><br />
      Instructors: Jeramie Risinger and Bean Fairbanks</span>
    </h1>
    <!-- end #header --></div>