I have a php a.php
where it accepts all the parameters posted to it by
$_REQUEST
I need to redirect the requests to b.php along with the $_REQUESTs received inside a.php. How is this possible please help
如果您只需要b.php
可用的数据, b.php
只需include "b.php"
Try this in your a.php to redirect to b.php
$array=array($_REQUEST['name1'],$_REQUEST['name2']);//form your array
$array=json_encode($array);
header('Location:b.php?q='.$array.'');
In b.php
$data=$_REQUEST['q'];
$data=json_decode($data);//you got array here and get the data from here
Use array with key values, it would be better
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.