This repository has been archived on 2026-03-14. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
kekec_bbs/test.php
T
2023-05-21 22:51:32 +09:00

16 lines
451 B
PHP

<?php
if(isset($_POST["save"])):
echo "<script>alert('保存しました')</script>";
$name = htmlspecialchars($_POST["name"], ENT_QUOTES);
$address = htmlspecialchars($_POST["address"], ENT_QUOTES);
else:
?>
<form action="" method="post">
<input type="text" name="name" value="<?= $name;?>">
<input type="text" name="address" value="<?= $address;?>">
<input type="submit" name="save" value="保存">
</form>
<?php
endif;
?>