PHPの勉強を始めました。物事をセットアップすることができました。
私はphpバージョン5.3.13を使用しています。
いくつかの情報を html フォームに投稿し、それを php ファイルで受信しようとしています。
目的のために、私は $_Post 変数を使用しており、php ファイルでの出力は空白です。
以下はhtmlコードです。
<body>
<form action="report.php" method="POST" >
<label for="firstname">First name:</label>
<input type="text" id="firstname" name="firstname" /><br />
<input type="submit" value="Report Abduction" name="submit" />
</form>
</body>
そして以下はreport.phpコードです
<html>
<head>
<title></title>
</head>
<body>
<?php
$name = $_POST['firstname'] ;
print($name);
?>
</body>
</html>
誰が私が欠けているものをアドバイスできますか?
ありがとう