一、首先 查询界面 代码:
<html>
<head>
<title>在线词典</title>
<meta http-equiv="content-type" content="text/html;charset=utf8"/>
</head>
<img src="cidian.png"/>
<h1>查询英文</h1>
<form action="worldProcess.php" method="post" >
请输入英文:<input type="text" name = "enword"/>
<input type="hidden" value="search" name="type" />
<input type="submit" value="查询" />
</form>
<h1>查询中文</h1>
<form action="worldProcess.php" method="post" >
请输入中文:<input type="text" name = "chword"/>
<input type="hidden" value="search1" name="type" />
<input type="submit" value="查询" />
</form>
</html>
效果如图:
二、创建数据库 表 以及插入 数据
//