Problems with PHP's value transfer
Public Function index () {
$Dao = M ("Zhaopin");
Constructs a query condition
$condition [' Position '] = $_get[' Position ');
$condition [' recruitment '] = $_get[' recruitment ');
$condition [' Position '] = array (' Like ', "%". $_get[' Position '). " %");
$condition [' recruitment '] = array (' Like ', "%". $_get[' recruitment '). " %");
//Total number of calculations
$count = $Dao->where ($condition)->count ();
Import the Paging class
import ("ORG. Util.page ");
//Instantiate the paging class
$p = new Page ($count, +);
Get query Parameters
$map [' Position '] = $_get[' Position '];
$map [' recruitment '] = $_get[' recruitment ');
foreach ($map as $key = + $val) {
$p->parameter. = "$key =". UrlEncode ($val). " & ";
}
//pagination display output
$page = $p->show ();
Current page data query
$list = $Dao->where ($condition)->order (' id DESC ')->limit ($p->firstrow. ', '. $p listRows)->select ();
//Assignment value
$this->assign (' page ', $page);
$this->assign (' list ', $list);
$this->display ();
}
All
Logistics Specialist/Assistant
Logistics Manager/Supervisor
Logistics Director
Dispatch Clerk
Courier Staff
Warehouse Manager
Loading/unloading/Porter
Supply Chain Management
International freight
Other positions
Luohu District
Futian district
Nanshan district
Yantian District
Bao'an district
Longgang district
Guangming New Zone
Pingshan New Zone
Dapeng Xin District
Longhua Zone
Shenzhen Week
Click any of the above to click on any one of the 2 below how to pass the value?
What I want is a/index.php/zhaopin/index? position= Other jobs &recruitment= Pingshan new District
------to solve the idea----------------------
------to solve the idea----------------------
Reference:
Quote: Reference:
Click on the time to get recruitment such writing is not written to die
Are you a post or a get
------to solve the idea----------------------
This is not the front-end construction URL when the problem?
------to solve the idea----------------------
You get two times
You're supposed to want to see this in the Address bar after you click on the Address bar Index.php/zhaopin/index? position= Other jobs &recruitment= Luohu District ""
------to solve the idea----------------------
This can be done in jquery way, like JQuery.address.parameter (Key,value), it will be in the address bar splicing parameters and values, or very useful!!!