Under-construction




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
$dice1 
$_GET["dice1"];
$dice2 $_GET["dice2"];
$dice3 $_GET["dice3"];
$die1'<img src=\"www.lzydaz.com/lvs/php101/week4/images/stamp' $i '.jpg\" height=\"100\" width=\"100\" alt=\"roll1\"';
$die2'<img src=\"www.lzydaz.com/lvs/php101/week4/images/stamp' $i '.jpg\" height=\"100\" width=\"100\" alt=\"roll2\"';
$die3'<img src=\"www.lzydaz.com/lvs/php101/week4/images/stamp' $i '.jpg\" height=\"100\" width=\"100\" alt=\"roll3\"';;
?>
    <?php/*$books = getBooks();
    foreach($books as $book){
        echo "<tr>";//start the row
            //echo out each cell
            echo "<td>" . $book['authorLast'] . "</td>";
            echo "<td>" . $book['authorFirst'] . "</td>";
            echo "<td>" . $book['bookTitle'] . "</td>";
            echo "<td>" . $book['genre'] . "</td>";
            echo "</tr>"; //end the row
    }*/
    
?>

<!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>Dice Game *revised</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<link href="<?php ($_SERVER['DOCUMENT_ROOT']); ?>/lvs/php101/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.php" title="Return to Main">Main</a></li>
<li><a href="books.php" title="Table">Books</a></li>
<li class="last"><a href="contact.php" title="Contact Form">Contact</a></li>
</ul>
</div><!-- close navcontainer -->

<div id="right-container">
<h1 class="highlight">Under-construction</h1>

<?php
$i 
=rand(1count($stamp)-1);
    if(
$dice1==1){
    echo 
$die1;
    }
    if(
$dice2==2){
    echo 
$die2;
    }
    if(
$dice3==3){
    echo 
$die3;
    }
?>

<form action="<?php $_SERVER['PHP_SELF'?>" method="get" name="roll">
<input name="dice1" type="radio" value="1" /><br />
<input name="dice2" type="radio" value="2" /><br />
<input name="dice3" type="radio" value="3" /><br />

<input type="submit" name="roll" value="Roll" />
</form>

<!--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>