Home>
<?php
session_start ();
define ("n", true);
if (empty ($_ session ["uid"])) {
  header ("location:./login.html");
}
?>
<! Doctype html>
<html>
<head>
<title>add</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<link rel="stylesheet" href="css/index.css" />
<script type="text/javascript" src="js/calendar.js"></script>
</head>
<body>
<?php
  require_once "header.php";
?>
<div id="add">
<h2 class="title">add information</h2>
<form method="post" action="add_do.php">
<table cellpadding="0" cellspacing="0"&​​gt;
  <tr>
    <td>Name:</td>
    <td><input type="text" name="username" /></td>
  </tr>
  <tr>
    <td>Gender:</td>
    <td>
      Male<input type="radio" name="usersex" value="1" checked="checked" />
      Female<input type="radio" name="usersex" value="0" />
    </td>
  </tr>
  <tr>
    <td>Birthday:</td>
    <td><input type="text" onclick="new calendar (). Show (this);" name="userbirth" /></td>
  </tr>
  <tr>
    <td>Phone:</td>
    <td><input type="text" name="usertel"></td>
  </tr>
  <tr>
    <td>Address:</td>
    <td><input type="text" name="useraddr"></td>
  </tr>
  <tr>
    <td colspan="2" style="text-align:center;">
    <input type="submit" name="sub" value="submit" />
    </td>
  </tr>
</table>
</form>
</div>
<?php
  require_once "footer.php";
?>
</body>
</html>
php
  • Previous MySql 57 installation and configuration method graphic tutorial under win7
  • Next Method for generating static HTML from dynamic JSP page