Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/287.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 为什么html格式的表单未提交?_Php_Html_Forms_Submit - Fatal编程技术网

Php 为什么html格式的表单未提交?

Php 为什么html格式的表单未提交?,php,html,forms,submit,Php,Html,Forms,Submit,我不明白为什么,但是当我打开表单所在的html文件时,我填补了所有的空白,然后单击submit按钮,但是什么都发生了 <form method="post" action="PHP FILE"> <label>NAME*</label> <input type="text" name="name" placeholder="YOUR NAME"> <label>EMAIL*</label> <input type="t

我不明白为什么,但是当我打开表单所在的html文件时,我填补了所有的空白,然后单击submit按钮,但是什么都发生了

<form method="post" action="PHP FILE">
<label>NAME*</label>
<input type="text" name="name" placeholder="YOUR NAME">
<label>EMAIL*</label>
<input type="text" name="email" placeholder="YOUR EMAIL”>
<label>CATEGORY*</label>
<select name="category">
<option value="1">FIRST</option>
<option value="2">SECOND</option>
</select>
<label>PHONE*</label>
<input type="text" name="phone" placeholder="YOUR PHONE">
<label>WEBSITE</label>
<input type="text" name="web" placeholder="YOUR WEBSITE”>
<label>MESSAGE</label>
<textarea name="message" placeholder="YOUR MESSAGE"></textarea>
<button type="submit">SEND</button>
</form>

名字*
电子邮件*
消息
发送
试试这个

<input type="submit" value="SEND"/>

表单的操作必须是某个文件 比如abc.php或abc.html


我希望这一定行得通

占位符的双引号是不同的 确保它们是相同的

<input type="text" name="email" placeholder="YOUR EMAIL”>

<input type="text" name="web" placeholder="YOUR WEBSITE”>


这不是有效的操作
action=“PHP文件”
。您必须提供有效的URI或URL才能将表单发送到。是的,我知道!真正的形式是action=“../assets/send.php”您在该页面上有任何活动的JS吗?您说的“在web中是”是什么意思?是的,有很多脚本。这是完全相同的。作为
SEND
。确切地说:它们必须是
而不是
哦,别担心,因为当我复制代码时,我更改了一些单词,使其易懂,因为我不是英语。@TiMESPLiNTER它是关于页面中的JS的,因为我将代码放在另一个文件中,它可以工作。我什么都不懂,当我删除一个脚本时,无论脚本是什么,只有一个,它是有效的。。。