Home  >  Article  >  Backend Development  >  thinkphp URL传值有关问题

thinkphp URL传值有关问题

WBOY
WBOYOriginal
2016-06-13 11:53:191020browse

thinkphp URL传值问题
添加一个超链接,比如百度,http://www.baidu.com/。注意:必须要带“/ ” 。thinkphp框架的URL模式是http://localhost/index.php/Admin/admin/p/2,这样的话就不识别/,这个符号了,最后生成的是http:,后面的都没有了。
用encodeURIComponent这个函数也不行,没有对“/” 这个符号编码。
------解决方案--------------------
你没说清楚。
如何添加,GET?POST?
GET的 话 
form enctype="application/x-www-form-urlencoded"
编个码解决问题,
POST
直接即可

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