このようにフォームからのデータを受け取り側のPHPプログラムで取り出すことができます。 下記のサンプルはGETの場合の時のサンプルとほぼ同じですが、フォームからの値を判別して画面への表示を変更しています。 mondai2.html <html> <head><title>PHP TEST</title></head> <body> <p> 問題:10×4= </p> <form method="POST" action="./kaitou2.php"> <input type="text" name="text1"> <input type="submit" name="btn1" value="回答"> </form> </body> </html> <html> <head><title>PHP TEST</title></head> <body> <?php $input_data