每次我点击提交按钮来处理我的网页的代码它去找不到对象(404错误)页面。 它发生在我的几个剧本,我不知道是否它我的本地主机(XAMPP)的问题还是我的代码的来源。
if (isset($_POST['submit']))
{
require "dbc.php"; //Connection to database
//the textfield input to be saved
$name = mysql_real_escape_string($_POST['assign_id']);
$id = mysql_real_escape_string($_POST['id']);
//the mysql query to process the textfield input
$query = mysql_query("UPDATE users SET docID='$assign_id' WHERE id='$id'");
//normal statement to let the user know that the changes have been made.
echo "Doctor ID Successfully Assigned for Patient ID : $name ";
echo "<p>Refresh page to view changes.</p>";
}