File name
Commit message
Commit date
File name
Commit message
Commit date
<?php
require_once("Address.php");
$name = $_POST['name'];
$age = $_POST['age'];
$tel = $_POST['tel'];
$area = $_POST['area'];
$birth = $_POST['birth'];
$address = new Address();
$result = $address->insertTest($name, $age, $tel, $area, $birth);
if($result) {
echo "<script>alert('Insert Success!!')</script>";
echo "<script>document.location.href='address_view.php'</script>";
}else {
echo "<script>alert('Insert Fail!!')</script>";
echo "<script>document.location.href='address_view.php'</script>";
}