Object Not Found error for simple php script

故事扮演 提交于 2019-12-02 08:32:01

You are using $assign_id in your query, where you get the $_POST['assign_id'] earlier and store it to $name.

Try changing $assign_id in your query to $name.
or
Try changing you variable $name to $assign_id.

EDIT

Another thing to check, is the file dbc.php in the same directory as this file?

EDIT 2

Post the contents of your apache2/error.log file. That will show what file was not found.

EDIT 3

Post the code for you <form> opening tag. What is your action set to? Does the action file actually exist?

404 is an HTTP error code, it has nothing to do (directly) with PHP.

It means that the server is not able to locate a file that matches with your request.

Essentially, it looks like you're requesting http://yourdomain.com/path/to/script.php when you submit your form, but the /path/to/script.php file doesn't exist.

When pressing submit on a form, the server tries to find the 'action' of the form. You should check that this action contains a valid filename in a correct path.

When pressing submit on a form, the server tries to find the 'action' of the form. You should check that this action contains a valid filename in a correct path.Always it shows error..

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!