0

如果我<form>text</form>从视图脚本中回显一个标签(使用或不使用 PHP),则formHTML 标签不会显示在 Firebug 中,而只会显示文本。Zend 为什么要删除它们?

在我看来脚本:

<?php
echo "<form>ds</form>";
?>

Firebug 仅显示:

ds
4

2 回答 2

1

It's probably not being removed by Zend, it's probably being removed by Firefox/Firebug when inspecting the DOM. For starters, that's not a valid use of the form element. It's missing required attributes. Also, without any sort of actual form being used, the HTML rendering engine may be smart enough to just discard it entirely.

In Firebug, check the actual response from the server on the Net tab to see if the tag is present there. If it is, then it's being removed client-side and not server-side.

于 2013-07-06T15:11:33.257 回答
0

问题解决了 :) 我的错误是:我没有在视图助手的表单中添加结束标记

于 2013-07-28T17:10:46.093 回答