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

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

WBOY
Release: 2016-06-13 13:27:19
Original
1086 people have browsed it

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>
Copy after login


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"]这里面是有值的

Copy after login


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

------解决方案--------------------
这是出自哪里的代码? 没有看到映射模板的代码。
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template