table1.php中
$department = $_POST['department'];

解决方案 »

  1.   

    直接提交,用$HTTP_POST_VARS['department'],取出
      

  2.   

    我在php4。0中好象可以到table1.php中直接使用$department就可以哦!
    要不信,你到table1.php中写,echo $department; 这条语句就可以看到你提交的结果。
      

  3.   

    1、简短风格的表单变量
       echo $department2、在树组$HTTP_POST_VARS和$HTTP_GET_VARS中的表单变量
       echo $HTTP_POST_VARS["department"]
      

  4.   

    我的是php4,不行啊,直接调用不行
      

  5.   

    当然你要提交以后才能用到了。要不就把他搞成一个全局变量,或者把值放到cookie里,那样不就可以了吗?
      

  6.   

    本页面:
    <form ...><input type="submit" value="添加">/form>table1.php页面中
    $department = $_POST['department'];
      

  7.   

    如果php.ini里面
    register_globals = On
    那么在程序里面可以直接用$department这个变量
    如果php.ini里面
    register_globals = Off
    则就要用
    $$HTTP_POST_VARS['department']
    $HTTP_GET_VARS['department']