thinkphp URL传值有关问题

WBOY
Release: 2016-06-13 11:53:19
Original
1058 people have browsed it

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
直接即可

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!