Home >Backend Development >PHP Tutorial >html页面取不到php的值解决方法

html页面取不到php的值解决方法

WBOY
WBOYOriginal
2016-06-13 10:28:161093browse

html页面取不到php的值

HTML code
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><p class="Fld">        <label class="label-m" for="user"> お名前:</label>        <span class="control"><!--<input tyle="text" value="--><!--{$formInfo.q_name}--><!--" id="user" readonly >--></span>                </p>


PHP code
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->$data=$this->qaModel->select("1");        $formInfo=array("q_name"=>$data[0]["Q_NAME"]                        );//$formInfo["q_name"]这里面是有值的


打开html的页面却没有拿到那个值,不知道什么原因。
刚开始做php的,哪位好人来帮帮我吧

------解决方案--------------------
这是出自哪里的代码? 没有看到映射模板的代码。
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn