Home > Backend Development > PHP Tutorial > php codeigniter 框架里面 超链接传参 问题

php codeigniter 框架里面 超链接传参 问题

WBOY
Release: 2016-06-23 14:26:54
Original
1033 people have browsed it

codeigniter 框架 php

codeigniter  框架里面 超链接传参 问题



&bn=">点击

上面的超链接传是可以的,但是怎么用codeigniter  实现下面的传参提交过去呢!
大虾怎么实现? 用下面的超链接实现方法

http://127.0.0.1:8080/aa/test?name=123

 ">点击

回复讨论(解决方案)

不太很定你问的问题,  url传递参数,程序可以获取url  处理下你想要的就出来了,CI有uri->segment()

">点击
假设$name = "123";$sex=1;
你想取到$name的值则 $this->uri->segment('3');
ci手册写的很清楚啊。

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