【php开源代码栏目提醒】:网学会员鉴于大家对php开源代码十分关注,论文会员在此为大家搜集整理了“confirm_deleteEmail.php”一文,供大家参考学习
<?php require_once("adminOnly.php");
include_once('../Connections/config.php');
$colname_rsDelete = "1";
if (isset($_POST['deletionEmail'])) {
$colname_rsDelete = (get_magic_quotes_gpc()) ? $_POST['deletionEmail'] : addslashes($_POST['deletionEmail']);
}
mysql_select_db($database_adesGBook, $link_id);
$query_rsDelete = sprintf("SELECT * FROM guestbook WHERE email = '%s'", $colname_rsDelete);
$rsDelete = mysql_query($query_rsDelete, $link_id) or die(mysql_error());
$row_rsDelete =
mysql_fetch_assoc($rsDelete);
$totalRows_rsDelete = my
sql_num_rows($rsDelete);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD
HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>删除</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../forText.css" rel="stylesheet" type="text/css">
</head>
<body>
<form action="deletedEmail.php?email=%22.$HTTP_POST_VARS%5B%27deletionEmail%27%5D.%22" method="POST" name="modify" id="modify">
<table width="600" border="0" cellpadding="2" cellspacing="1" bgcolor="#FFFFFF">
<?php do { ?>
<tr>
<td width="120" bgcolor="#F3F3F3" class="forTableBgLeft">编号:</td>
<td bgcolor="#F8F8F8" class="forTableBgRight"><?php echo $row_rsDelete['ID']; ?> </td>
</tr>
<tr>
<td width="120" bgcolor="#F3F3F3" class="forTableBgLeft">留言者: </td>
<td bgcolor="#F8F8F8" class="forTableBgRight"><?php echo $row_rsDelete['firstName']; ?> <?php echo $row_rsDelete['lastName']; ?></td>
</tr>
<tr>
<td bgcolor="#F3F3F3" class="forTableBgLeft">电子邮件:</td>
<td bgcolor="#F8F8F8" class="forTableBgRight"><?php echo $row_rsDelete['email']; ?></td>
</tr>
<tr>
<td bgcolor="#F3F3F3" class="forTableBgLeft">个人主页:</td>
<td bgcolor="#F8F8F8" class="forTableBgRight"><?php echo $row_rsDelete['
website']; ?></td>
</tr>
<tr>
<td bgcolor="#F3F3F3" class="forTableBgLeft">来自:</td>
<td bgcolor="#F8F8F8" class="forTableBgRight"><small><?php echo $row_rsDelete['country']; ?></small></td>
</tr>
<tr valign="top">
<td bgcolor="#F3F3F3" class="forTableBgLeft">留言内容:</td>
<td bgcolor="#F8F8F8" class="forTableBgRight"><?php echo $row_rsDelete['comment']; ?></td>
</tr>
<tr>
<td colspan="2" bgcolor="#F3F3F3" class="forText"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td background="../images/dot.gif"><img src="../images/dot.gif" width="3" height="5"></td>
</tr>
</table></td>
</tr>
<?php } while ($row_rsDelete = mysql_fetch_assoc($rsDelete)); ?>
<tr>
<td bgcolor="#F3F3F3" class="forTableBgLeft"><input name="email" type="hidden" id="email" value="<?php echo $row_rsDelete['email']; ?>">
<input name="deletionEmail" type="hidden" id="deletionEmail" value="<?php echo $_POST['deletionEmail']; ?>"></td>
<td bgcolor="#F8F8F8" class="forTableBgLeft"><table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td><input name="Submit" type="submit" class="forButton" value="确认删除"></td>
</tr>
</table></td>
</tr>
</table>
<input type="hidden" name="MM_insert" value="addMessage">
</form>
</body>
</html>
<?php
mysql_free_result($rsDelete);
?>