< script > var name = " myqq " , value = " 66166457 " ;document . cookie = " myqq " + " = " + value + " ; " </ script > <? php echo " $_COOKIE[myqq] " ; $my = " 我的QQ是 " . $_COOKIE [ ' myqq ' ]; echo $my ; ?>