|
视图代码:
<body>
<table border=1 width=60% align="center">
<tr>
<td align="center"><h1>CI简单新闻系统</h1></td>
</tr>
</table>
</br>
<table border=1 width=60% align="center">
<tr>
<td align="center" width=10%>
<form action="http://localhost/CI/admin" method="post">
<table border="1" width="100%">
<tr>
<td>用户名:</td><td><input type="text" id="user"/></td>
</tr>
<tr>
<td>密码:</td><td><input type="password" id="pwd"/></td>
</tr>
<tr>
<td colspan="2"><input type="submit" value="登录" id="sub"/></td>
</tr>
</table>
</form>
</td>
<td align="center" width=50%></td>
</tr>
</table>
</body>
codeigniter/admin.php 中获取$_POST数组为空,求教大大 |
|