The value transfer problem between PHP and HTML was originally intended to be passed through smarty, but something went wrong. The JavaScript method is called on the HTML page to create a report. However, when the $ smarty-& gt; display () method is used on the php page to display html, nothing is displayed, viewing the source code is indeed the same as HTML. directly accessing HTML can display the report's value transfer problem between PHP and HTML.
I wanted to use smarty to pass the value, but something went wrong. The JavaScript method is called on the HTML page to create a report. However, when the $ smarty-> display () method is used on the php page to display html, nothing is displayed, view the source code is indeed the same as HTML. directly accessing HTML can display reports. Can someone explain it?
Besides using smarty to pass values, is there any other way? please explain. thank you.
------ Solution --------------------
1. do the "page" and $ page pairs in smarty-> assign ("page", $ page) correspond?
2. does $ page exist in the current php or tpl file?
3. does the $ page value exist on the html page?
Click the $ page value in each process to find out the problem.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.