标签: php arrays variables
$pname = "postback_".$data; $_SESSION["$pname"] = $data;
它不起作用。怎么用?
答案 0 :(得分:5)
<?php session_start(); $pname = "postback_".$data; $_SESSION[$pname] = $data; ?>
答案 1 :(得分:0)
确保已将session_start();置于脚本之上。
session_start();