0
你好,我有一個問題,我正在爲一個項目創建的網站。每當我將它上傳到aws彈性beanstalk時,除了當我使用表單時。500服務器錯誤AWS彈性beanstak
<form action="supply.php" method="POST">
Product Name: <input type="text" name="p_name"><br>
Order Qty: <input type="text" name="ord_qty"><br>
Name: <input type="text" name="user_name"><br>
Address: <input type="text" name="address"><br>
<input type="submit" name="submit" value="Submit"> <input type="reset">
</form>
這是我的形式,這裏是我的supply.php在那裏我得到500錯誤
<html>
<body>
<h1>Thank you for your order. <? php echo $_POST["user_name"]; ?><br></h1>
<form action="order.php">
<input type="submit" value="Go to Orders">
</form>
<?php
$p_name = $_POST['p_name'];
$ord_qty = $_POST['ord_qty'];
$name = $_POST['user_name'];
$address = $_POST['address'];
$string = $p_name. "," . $ord_qty. "," . $name. "," . $address;
$file = "order.txt";
file_put_contents($file,$string . "/n", FILE_APPEND);
?>
</body>
</html>
有什麼錯嗎?我看不出任何問題,和它的駕駛我瘋狂
它的工作謝謝你! – Ninjaboy12
沒問題,祝你的項目好運,確保你接受答案:) –