📄 display.php
字号:
<html>
<head>
<title>Mail record update form</title>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<form name="maildata" method="post" action="update.php">
<table width="250" border="1" align="center">
<?php
$connect= mysql_connect("localhost","root","")
or die("Could not connect to MySQL server in localhost !");
$result=mysql_select_db("Mailinglist")
or die("Could not select Mailinglist Database");
$sqlquery = "SELECT * from Maildata where Email='" .$Email ."'";
$queryresult = mysql_query($sqlquery);
if($row=mysql_fetch_array($queryresult))
{
echo "<tr> ";
echo " <td> Name </td>";
echo " <td width=\"150\"> ". $row["Name"] . " </td>";
echo "</tr>";
echo "<tr> ";
echo " <td> e-mail </td>";
echo " <td>". $row["Email"]."</td>";
echo " <td> <input type=\"hidden\" Name=\"Email\"
value=\"".$row["Secondaryemail"]."\" ></td>";
echo "</tr>";
echo " <tr> ";
echo " <td> secondary e-mail </td>";
echo " <td> ";
echo " <input type=\"text\" Name=\"Secondaryemail\"
value=\"".$row["Secondaryemail"]."\" >";
echo " </td>";
echo "</tr>";
echo "<tr> ";
echo " <td> ";
echo " <center> ";
echo " <input type=\"submit\" name=\"Submit\"
value=\"Submit\">";
echo " </center>";
echo " </td>";
echo "</tr>";
}
?>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -