フォームの練習 其の2

フォームの練習4

<!DOCTYPE HTML>
<html lang="ja">
<head>
<meta charset="UTF-8">
<title>フォームの練習</title>
</head>

<body>
<form action="next_page.php" method="post">
<input name="keyword" type="text">
<input name="button" type="submit" value="検索">
</form>
</body>
</html>

フォームの練習5

<!DOCTYPE HTML>
<html lang="ja">
<head>
<meta charset="UTF-8">
<title>フォームの練習</title>
</head>

<body>

<form action="php-7.php" method="post">
お名前:<input type="text" name="name"><br />
メッセージ:<input type="text" name="massage"><br />
<input type="submit" value="送信する">

</form>

</body>
</html>

フォームの練習6

<?php
$name_php = $_post['name'];
$massage_php = $_['massage'];
echo $name_php.'おこんばんわ'.$massage_php.'ニーハオ';
?>