Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/81.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
文本区域中的随机html代码_Html - Fatal编程技术网

文本区域中的随机html代码

文本区域中的随机html代码,html,Html,有人知道为什么我的文本区域会出现随机html代码吗 这就是我要说的: 以下是我的代码: <form id="f1" action="contact.php" method="post"> Your Name: <input type="text" name="cf_name" /><br/> Your e-mail: <input type="email" name="cf_email"/><br/> Messa

有人知道为什么我的文本区域会出现随机html代码吗

这就是我要说的:

以下是我的代码:

<form id="f1" action="contact.php" method="post">
  Your Name: 
  <input type="text" name="cf_name" /><br/>
  Your e-mail:
  <input type="email" name="cf_email"/><br/>
  Message:<br/>
  <textarea form="f1" name="cf_message"/><br/>
  <input type="submit" value="Send"/>
  <input type="reset" value="Clear"/>
</form>

你的名字:

您的电子邮件:
消息:

不匹配的引号:

<input type="submit'  value="Send"/>


你的名字:

您的电子邮件:
消息:


您应该在报价使用上保持一致,并解释为什么在OP的代码块不起作用的情况下,这一点是有效的。
<textarea form="f1" name="cf_message">
</textarea>
<form id="f1" action="contact.php" method="post">
  Your Name: 
  <input type="text" name="cf_name" /><br/>
  Your e-mail:
  <input type="email" name="cf_email"/><br/>
  Message:<br/>
  <textarea form="f1" name="cf_message"></textarea><br/>
  <input type="submit"  value='Send'/>
  <input type="reset" value="Clear"/>
</form>