添加 php 代码
我需要一些帮助才能在这段代码中放置一个简单的 php 标签
$return.="<form method='post' action='#'><input type='submit' value=''><input type='hidden' name='task'></form>";
,我需要放置 php - - 在第一个输入标签中
有人可以帮忙吗?
谢谢
I need some help to put a simple php tag in this code
$return.="<form method='post' action='#'><input type='submit' value=''><input type='hidden' name='task'></form>";
I need to put the php - <?php echo $htmlString; ?>
- in the first input tag
Can somebody help please?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果您想将其作为值插入到提交按钮,这里是解决方案。
更新:
使用以下代码:就像您想要使用变量 CbText::_('CONFIRM') 一样。
If you want to insert it as value to submit button here is the solution.
Update:
Use the following code: as you want to use the variable CbText::_('CONFIRM').
有两种方法可以做到这一点:
您可以使用以下语法通过 PHP 有条件地打印 HTML 代码:
<前><代码>
或者仅通过字符串连接:
There are two ways to do this:
You can print HTML code conditionally with PHP using this syntax:
Or just by string concatenation: