キケッツ掲示板のリポジトリです. https://bbs.kekec.wiki
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

test.php 451 B

12345678910111213141516
  1. <?php
  2. if(isset($_POST["save"])):
  3. echo "<script>alert('保存しました')</script>";
  4. $name = htmlspecialchars($_POST["name"], ENT_QUOTES);
  5. $address = htmlspecialchars($_POST["address"], ENT_QUOTES);
  6. else:
  7. ?>
  8. <form action="" method="post">
  9. <input type="text" name="name" value="<?= $name;?>">
  10. <input type="text" name="address" value="<?= $address;?>">
  11. <input type="submit" name="save" value="保存">
  12. </form>
  13. <?php
  14. endif;
  15. ?>