1
私はWAMPを使用しています。私のHTMLフォームはPHPファイルにデータを送信していません。HTMLフォームデータをPHPファイルに渡すことができません
私のHTMLファイルが
<html>
<body>
<form acton="process.php" method="POST">
Quantity: <input name ="quantity" type ="text" />
<input type="submit"/>
</form>
</body>
</html>
で、あなたのHTMLコードを記述するミスを犯した
<html>
<body>
<?php
$quantity=$_POST['quantity'];
echo $quantity;
?>
</body>
</html>
する必要があります –