0
我從一個頁面發佈值到另一個。這是一個非常簡單的過程,但我不斷收到錯誤:HTML帖子給404錯誤
找不到 在此服務器上找不到請求的URL/send_notification.php? 此外,嘗試使用ErrorDocument處理請求時遇到404 Not Found錯誤。
這是我的第一頁:
<html>
<body>
<form action=「send_notification.php」 method=「post」>
<table>
<tr>
<td>title:</td>
<td><input type=「text」 name=「title」/></td>
</tr>
<tr>
<td>Message: </td>
<td><input type=「text」 name=「message」/></td>
</tr>
<tr>
<td>
<input type="submit" value="Submit">
</td>
</tr>
</table>
</form>
</body>
</html>
,這裏是我的第二頁:
<?php
require "init.php";
$messages=$_POST['message'];
$title=$_POST['title'];
echo $messages;
echo $title;
?>
我很困惑什麼是錯的。
爲您的HTML屬性使用恰當的引號 – Clive