国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

PHP development student management system add information page

Create add.php file

Create add.php file Make a page like the one below

1.jpg

Using a table layout, the code is as follows

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>學(xué)生管理系統(tǒng)</title>
</head>
<body>
    <?php include ('menu.php'); ?>
 <h3>增加學(xué)生信息</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>

The following is to submit the information we filled in on the page to action=add in action.php method to process and save the information to the database


Continuing Learning
||
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>學(xué)生管理系統(tǒng)</title> </head> <body> <?php include ('menu.php'); ?> <h3>增加學(xué)生信息</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>
submitReset Code