亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

PHP開發(fā)簡單圖書借閱系統(tǒng)之用戶登入頁

1615.png

繼續(xù)使用<form>表單和<table>表格來建立登入頁面

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<form  name="myform" method="post" onSubmit="return CheckPost()" action="" style="margin-bottom:5px;">
  <table width="" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#CCCCCC">
    <tr>
      <td height="" colspan="2" bgcolor="#FFFFFF">用戶登錄</td>
    </tr>
    <tr>
      <td width="" align="right" bgcolor="#FFFFFF">用戶名:
      </td>
      <td width="" bgcolor="#FFFFFF"><input type="text" name="username"></td>
    </tr>
    <tr>
      <td align="right" bgcolor="#FFFFFF">密 碼:
      </td>
      <td bgcolor="#FFFFFF"><input type="password" name="password"></td>
    </tr>
    <tr>
      <td align="right" bgcolor="#FFFFFF"><a href="reg.php">注冊新用戶</a>
      </td>
      <td bgcolor="#FFFFFF"><input type="submit" name="submit" value="登錄"></td>
    </tr>
  </table>
</form>

增加了一個「註冊新使用者」跳轉頁,如果沒有註冊則跳到註冊頁面註冊。

完整的登入頁面landing.php程式碼:

<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>簡單圖書管理系統(tǒng)登錄</title>
  <style>
    body,td,th {font-family: 微軟雅黑;font-size: 9px;color: #222;}
    body {background-color: #FFFFFF;line-height:20px;}
    a:link {color: #222;text-decoration: none;}
    a:visited {text-decoration: none;color: #222;}
    a:hover {text-decoration: underline;color: #FF0000;}
    a:active {text-decoration: none;color: #999999;}
  </style>
</head>
<body>
<form  name="myform" method="post" onSubmit="return CheckPost()" action="" style="margin-bottom:5px;">
  <table width="" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#CCCCCC">
    <tr>
      <td height="" colspan="2" bgcolor="#FFFFFF">用戶登錄</td>
    </tr>
    <tr>
      <td width="" align="right" bgcolor="#FFFFFF">用戶名:
      </td>
      <td width="" bgcolor="#FFFFFF"><input type="text" name="username"></td>
    </tr>
    <tr>
      <td align="right" bgcolor="#FFFFFF">密 碼:
      </td>
      <td bgcolor="#FFFFFF"><input type="password" name="password"></td>
    </tr>
    <tr>
      <td align="right" bgcolor="#FFFFFF"><a href="reg.php">注冊新用戶</a>
      </td>
      <td bgcolor="#FFFFFF"><input type="submit" name="submit" value="登錄"></td>
    </tr>
  </table>
</form>
</body>
</html>
繼續(xù)學習
||
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>簡單圖書管理系統(tǒng)登錄</title> <style> body,td,th {font-family: 微軟雅黑;font-size: 9px;color: #222;} body {background-color: #FFFFFF;line-height:20px;} a:link {color: #222;text-decoration: none;} a:visited {text-decoration: none;color: #222;} a:hover {text-decoration: underline;color: #FF0000;} a:active {text-decoration: none;color: #999999;} </style> </head> <body> <form name="myform" method="post" onSubmit="return CheckPost()" action="" style="margin-bottom:5px;"> <table width="" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#CCCCCC"> <tr> <td height="" colspan="2" bgcolor="#FFFFFF">用戶登錄</td> </tr> <tr> <td width="" align="right" bgcolor="#FFFFFF">用戶名: </td> <td width="" bgcolor="#FFFFFF"><input type="text" name="username"></td> </tr> <tr> <td align="right" bgcolor="#FFFFFF">密 碼: </td> <td bgcolor="#FFFFFF"><input type="password" name="password"></td> </tr> <tr> <td align="right" bgcolor="#FFFFFF"><a href="reg.php">注冊新用戶</a> </td> <td bgcolor="#FFFFFF"><input type="submit" name="submit" value="登錄"></td> </tr> </table> </form> </body> </html>