我的第一页的编码
$Text = json_encode($cluster);
$RequestText =urlencode($Text);
echo '<table>';
for($i=0;$i<$n;$i++)
{
for($x=0;$x<=$c1;$x++)
{
if($cluster[$i]==$ebclus[$x])
{
echo "<tr><td>".$cname[$i]."</td><td>".$cluster[$i]."</td><td>".$statusid[$x]."</td>";
if($statusid[$x]==ON)
{
echo "<td><a href=myebon.php?&dept=".$dept."&branch=".$branch."&end=".$c1."&start=".$i."&cluster=".$RequestText.">Click here to OFF</a></td>";
}
elseif($statusid[$x]==OFF)
{
echo "<td><a href=myebon.php?&dept=".$dept."&branch=".$branch."&end=".$c1."&start=".$i."&cluster=".$RequestText.">Click here to ON</a></td>";
}
}
}
}
myebon.php
$dept=$_GET[dept];
$branch=$_GET[branch];
$end=$_GET[end];
$start=$_GET[start];
$Text = urldecode($_REQUEST['cluster']);
$Mixed = json_decode($Text);
echo $Mixed;
for($i=0;$i<=$end;$i++)
{
echo $Mixed[$i];
}
答案显示为 [\"73\",\"71\",\"73\"]