Back to Week 6

Choose a Book Genre

<?php 
    
/* My variables */
    
$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>";
     include(
'includes/bookFunctions.php'); /* reads in bookFunction, 
     this also contains connection to database */
    
$genres getGenres(); //populates array from database
 
?>
<!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>
<title><?php echo $title ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
@import url("common/week6a.css");



</style>
</head>
<body>
<?php include('./includes/header.php'); ?>
<div id="mainContent">
      <div id="backDiv"><a href="http://www.rjoannej.com/php101/week6.php">Back to Week 6</a></div>
 
 <form method="get" action="includes/displayBooks.php">
        <p><b>Choose a Book Genre</b></p>
        <p><select name='genre'>
            <?php foreach ($genres as $genre){
            echo 
"<option value='".$genre['genreID']."'>".$genre['genre']."</option>\n";
            }
?></select>
        </p>
        <p><input name="submit" type="submit" value="Get My  Books!">
        </input></p>
    </form>
    <div id="showSource"><?php show_source(basename($_SERVER['PHP_SELF']));?>
 </div>
 </div>
 
</body>
</html>