Home  >  Article  >  Backend Development  >  thinkphp passes values ​​into the frame

thinkphp passes values ​​into the frame

WBOY
WBOYOriginal
2016-08-18 09:15:301317browse

There is a game.html page. This page iframes a farm.html page. A value is obtained in the game method, but this game method still requires $this->display(); Now I want to obtain the value obtained in the game in the farm method. How can I do this?

Reply content:

There is a game.html page. This page iframes a farm.html page. A value is obtained in the game method, but this game method still requires $this->display(); Now I want to obtain the value obtained in the game in the farm method. How can I do this?

I don’t know if you are talking about 3.2 or 5.0. In addition, iframe no longer needs to input tp to be piped, but input Html and js for processing. It is recommended that you write like this
<script>v_id={$id}</script>

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