MySQL & PHP 실습 (3)

yurison·2022년 12월 30일
0
post-custom-banner

Form

  • 3.html
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
  </head>
  <body>
    <form action="http://localhost/project_php/3.php" method="POST">
      <p>
        <label for="text">제목 : </label>
        <input type="text" id="text" name="title" />
      </p>
      <p>
        <label for="main_text">본문 : </label>
        <textarea
          name=""
          id="main_text"
          cols="30"
          rows="5"
          name="description"
        ></textarea>
      </p>
      <input type="submit" />
    </form>
  </body>
</html>
  • 3.php
<?php
echo $_POST['title'];
echo "<br />";
echo $_POST['description'];
?>
post-custom-banner

0개의 댓글