I passed an array through the url but when I want to use $sim_p[1] i encounter with "Notice: Undefined offset: 1" but for offset 0 it works fine!
$url = 'My Library.php?num='.$k.'&sim_p[]=' . implode('&sim_p[]=', array_map('urlencode', $sim_p)); //sim_p[ 0 ] and sim_p[ 1 ] are full in this page
header ("Location:".$url);
and in My Library.php:
$num = $_GET[ 'num' ];
$sim_p = array();
if($num > 0){
$sim_p = $_GET[ 'sim_p' ];
}
Thank you in advance!