コード例 #1
0
<?php

echo '<pre>';
print_r($_POST);
if (isset($_POST['btn'])) {
    require_once './calculator/student.php';
    $obj = new student();
    $obj->save_student($_POST);
}
?>

<html>
    <head>
        <title>Calculator</title>
    </head>
    <body>
        <form action="#" method="POST">
            <table align="center" bgcolor="pink">
                <tr>
                    <td>Student Name</td>
                    <td><input type="text" name="name"></td>
                </tr>
                
                <tr>
                    <td>Student Email Address</td>
                    <td><input type="email" name="email"></td>
                </tr>
                
                
                <tr>
                    <td>Student Phone Number</td>