日期:2012-12-28  浏览次数:20534 次

用php+mysql一个名片库程序,有分类查找,分页功能。

第一步:按下列代表先做个静态页面。
<form method="post" action="find1.php" name="card" >
          <table width="400" border="0" cellspacing="0" cellpadding="0" class="p10">
            <tr>  
              <td colspan="2" height="79">  
                <table width="280" border="0" cellspacing="0" cellpadding="0" class="p10">
                  <tr>  
                    <td colspan="3" height="37">输入关键字:
<input type="text" name="keyword" class="c3a">
                    </td>
                  </tr>
                  <tr>  
                    <td>  
                      <input type="radio" name="inout" value="N" checked>
                      按姓名</td>
                    <td>  
                      <input type="radio" name="inout" value="C">
                      按地区</td>
                    <td>  
                      <input type="radio" name="inout" value="A">
                      按职位</td>
                  </tr>
                </table>
              </td>
            </tr>
            <tr>  
              <td colspan="2" height="47">  
                <input type="submit" name="query1" value="查找">
                <input type="reset" name="Submit2" value="清除">
             &