小编mof*_*ffe的帖子

切换页面时$ _POST值消失

我有一个非常令人沮丧的问题:$_POST当使用"分页"时,值已经消失了,我已经尝试过$_SESSION,这基本上给了我相同的结果$_POST.

我尝试使用setcookies()哪个工作,除了我必须刷新页面一次.

global $wp_query;
global $wpdb; 
global $post;  

$restriction1 = 'pool';  
$restriction2 = 'garage';  
$restriction3 = 'tomttradgard';  
$restriction4 = 'enplanmarkplan';  
$restriction5 = 'hiss';  $restriction11 = 'flertoaletter';   
$restriction12 = 'havsutsikt'; 

$restriction13 = 'takterass';   
$restriction6 = 'sovrum';  
$restriction7 = 'pris';  
$restriction8 = 'omrade';  
$restriction9 = 'area';  
$restriction10 = 'hustyp';

if ($_POST["poolsb"]) { $value1 = $_POST["poolsb"]; } 
if ($_POST["garagesb"]) { $value2 = $_POST["garagesb"]; }
if ($_POST["tomttradgardsb"]) { $value3 = $_POST["tomttradgardsb"]; } 
if ($_POST["enplanmarkplansb"]) { $value4 …
Run Code Online (Sandbox Code Playgroud)

php mysql wordpress pagination

1
推荐指数
1
解决办法
254
查看次数

标签 统计

mysql ×1

pagination ×1

php ×1

wordpress ×1