www.gusucode.com > 给力搜索小偷开源源码 3.0源码程序 > admin/index.php
<? include('data.php'); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>给力后台登陆</title> <script language="JavaScript"> function chk(){ if(document.login.adminname.value==""){ alert("不好意思用户名不能为空!"); return false; }else if(document.login.password.value==""){ alert("不好意思密码不能为空!"); return false; } } </script> </head> <body> <form action="login.php" method="post" name="login" onSubmit="return chk();"> <table width="388" border="1" align="center" bordercolor="#666666"> <tr> <td>管理员:</td> <td><input type="text" name="adminname" value="" /></td> </tr> <tr> <td>密码:</td> <td><input type="password" name="password" value="" /></td> </tr> <tr> <td> </td> <td><input type="submit" name="submit" value="登录"/> <input type="reset" name="reset" value="重置" /></td> </tr> </table> <script language="JavaScript"> document.login.adminname.focus(); </script> </form> </body> </html>