Location: PHPKode > projects > K-12 OSS Web Software Project > equest_0.1/teacher/delete.php
<?php
include("../config.php");

session_start();
if (!(isset($_SESSION['teacher']))) {
       header("Location: ../index.php");
       exit();
   }
?>

<html><head>
<title>eQuest Web Quest System</title>
<link type="text/css" rel="stylesheet" href="./styles.css">
</head>
<body>
<table class="maintable" bordercolor="#000066" cellspacing="0" cellpadding="3" align="center" border="1" width="600">
<tbody>
<?php include("./header.php"); ?>
<?php 
$query = "SELECT quest_unique,quest_title FROM quests WHERE quest_unique='{$_REQUEST["quest"]}'"; 
$result = mysql_query($query) or die(mysql_error());
$res = mysql_fetch_array($result);
?>

<!-- start teacher list block -->
  <tr>
    <td class="text" bgcolor="#ffffff" valign="top">
<blockquote>

<h2>Delete Web Quest</h2>

<p>Are you really sure you want to delete the web quest "<b><?php echo $res["quest_title"]; ?></b>"?</p>
<p><a href="yes.php?quest=<?php echo $res["quest_unique"]; ?>">Yes</a> | <a href="members.php">No</a></p>
</blockquote>
    </td>
  </tr>
<!-- end teacher list block -->


<?php include("./footer.php"); ?>
Return current item: K-12 OSS Web Software Project