我试图验证码字段添加到表单中的XSL文件中,但PHP没有出现被显示在网页上: -我可以在PHP中包含XSL文件吗?
我目前有: -
<xsl:call-template name="signature">
<xsl:with-param name="text" select="signature" />
</xsl:call-template>
<?php
require_once('/recaptchalib.php');
$publickey = "public_key";
echo recaptcha_get_html($publickey);
?>
<div class="forum_default_margin_top">
<input type="submit" name="post_submit" value="Submit" onclick="tinyMCE.triggerSave(); if (!f.checkPostTopicValues(document.forms['new_topic'].topic_subject, document.forms['new_topic'].topic_text, document.forms['new_topic'].signature, true)) return false;" class="forum_default_margin_right" />
<input type="reset" name="cancel" value="Cancel" onclick="return f.cancelNewTopic('{forum/uri}', 0)" />
</div>
有是的上方和下方,但上面显示我是如何试图在文件中包含PHP,但没有呈现在前端更多的代码 - 甚至包括我的回声声明
echo "Hello World";
这仍然没有正面展示结束。
任何帮助非常感谢,非常感谢。
这是什么样的服务器? – 2011-12-14 10:34:29