| เปิด Sourcecode ที่ thaiall.com นี้ แต่ pcook.php หรือ pcook.php3 จะไม่ประมวลผลที่เว็บนี้ 
 
<?
if ($thaiall == "" || $submit == "restore") {
$thaiall = "car:5:hat:6:pen:7:book:3:key:4:";
setcookie("thaiall","$thaiall");
}
if ($submit == "add") {
$thaiall = "$thaiall$newid:$newamt:";
setcookie("thaiall","$thaiall");
}
if ($submit == "del") {
  $key = preg_split ("/[\s:]+/",$thaiall);
  $thaiall = "";
  $i = 1; $j = 0;
  while ($key[$j] != "") {
    $k = $j + 1;
    if ($delid != $key[$j]) { $thaiall = "$thaiall$key[$j]:$key[$k]:"; }
    $i++;
    $j = $j + 2;
  }
  setcookie("thaiall","$thaiall");
}
echo "<form action=pcook.php>";
echo "<input type=text name=delid><input type=submit name=submit value=del></form><hr>";
echo "<form action=pcook.php>";
echo "<input type=text name=newid><input type=text name=newamt>";
echo "<input type=submit name=submit value=add></form><hr>";
echo "<form action=pcook.php><input type=submit name=submit value=restore></form><hr>";
$key = preg_split ("/[\s:]+/",$thaiall);
  $i = 1; $j = 0;
  while ($key[$j] != "") {
    $k = $j + 1;
    echo "$i $key[$j] $key[$k]<br>";
    $i++;
    $j = $j + 2;
  }
echo "<hr>$thaiall";
?>
 |