Tutorial sistem...LOGIN

Tutorial sistem pengurusan pelajar pembangunan PHP ditambah

Buat add.php dan tambah fail halaman

Kami menggunakan jadual untuk reka letak halaman ini Kesan akhir adalah seperti yang ditunjukkan di bawah

10.jpg

Kodnya seperti berikut

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>学生管理系统</title>
</head>
<body>
    <?php include ('menu.php'); ?>
 <h3>增加学生信息</h3>
    <form action="action.php?action=add" method="post">
        <table>
            <tr>
                <td>姓名</td>
                <td><input type="text" name="name"></td>
            </tr>
            <tr>
                <td>年龄</td>
                <td><input type="text" name="age"></td>
            </tr>
            <tr>
                <td>性别</td>
                <td><input type="radio" name="sex" value="男">男</td>
                <td><input type="radio" name="sex" value="女">女</td>
            </tr>
            <tr>
                <td>班级</td>
                <td><input type="text" name="class"></td>
            </tr>
            <tr>
                <!--        <td> </td>-->
 <td><a href="index.php">返回</td>
                <td><input type="submit" value="添加"></td>
                <td><input type="reset" value="重置"></td>
            </tr>
        </table>
    </form>
</body>
</html>


bahagian seterusnya
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>学生管理系统</title> </head> <body> <?php include ('menu.php'); ?> <h3>增加学生信息</h3> <form action="action.php?action=add" method="post"> <table> <tr> <td>姓名</td> <td><input type="text" name="name"></td> </tr> <tr> <td>年龄</td> <td><input type="text" name="age"></td> </tr> <tr> <td>性别</td> <td><input type="radio" name="sex" value="男">男</td> <td><input type="radio" name="sex" value="女">女</td> </tr> <tr> <td>班级</td> <td><input type="text" name="class"></td> </tr> <tr> <!-- <td> </td>--> <td><a href="index.php">返回</td> <td><input type="submit" value="添加"></td> <td><input type="reset" value="重置"></td> </tr> </table> </form> </body> </html>
babperisian kursus