简体   繁体   English

表单提交操作=“ directory / file.php”路径不在服务器上错误

[英]form submit action=“directory/file.php” path doesn't on server error

I have a form which is: 我有一个表格是:

<form action="Code Files/file.php" method="post">

<button name="submit" type="submit">Submit</big></button>
</form>

Now the problem is when i place the "file.php" in the same folder then form is submitting but when i put in another directory like "Code Files/file.php" its giving error. 现在的问题是,当我将“ file.php”放置在同一文件夹中时,表单正在提交,但是当我放入另一个目录(如“ Code Files / file.php”)时,它给出了错误。 I tried so many times with different combinations but its not working for me. 我用不同的组合尝试了很多次,但对我却不起作用。 any help would be appreciated. 任何帮助,将不胜感激。

tried: 尝试过:

../../Code Files/file.php
Code Files/file.php
/Code Files/file.php

Directory containing the PHP script: 包含PHP脚本的目录:

www\Users\Operator\Code Files

Directory containing the document with the HTML form: 包含HTML格式的文档的目录:

www\Users\Operator\

Error: 错误:

Not Found

The requested URL /Users/Users/Operator/file.php was not found on this server.

Edited 已编辑

Try not to use whitespaces in your pathnames and filenames. 尽量不要在路径名和文件名中使用空格。 Also consider that pathnames and filenames on operating systems like Linux are case-sensitive so File.php != file.php 还要考虑到像Linux这样的操作系统上的路径名和文件名区分大小写,因此File.php!= file.php

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM