Newer
Older
Ruby / public_html / hello.html
@AKIBA Hiroki AKIBA Hiroki on 13 Feb 2025 971 bytes 2025-02-13 21:00:29
<!DOCTYPE html>
<html lang="Ja">
  <head>
    <meta charset="UTF-8">
    <title>AKIBA </title>
  </head>

  <body>
  <h1>秋葉啓樹のホームページへようこそ!</h1>
  <p>寄ってらっしゃい見てらっしゃい</p>
  <h2> </h2>
  <h2>新規投稿</h2>
  <form action="<?php print($_SERVER['PHP_SELF'])?>" method="POST">
  <input type="text" name="personal_name"><br><br>
  <textra name="contents" rows="8" cols="40">
  </textra><br><br>
  <input type="submit" name="btn1" value="投稿する">
  </form>

  <?php

  $personal_name = $_POST['personal_name'];
  $contents = $_POST['contents'];

  print("<p>投稿者:'.$personal_name.'</p>");
  print("<p>内容:</p>");
  print("<p>'.$contents.'<p>");

  ?>
  <br>
  <a href="https://twitter.com/share?ref_src=twsrc%5Etfw" class="twitter-share-button" data-text="text"data-show-count="false">Tweet</a>
  <script async src="https://platform.twitter.com/widgets.js" charse="utf-8"></script>
  </body>
</html>