第一个页面中<input type="hidden" name="objPost" value = .str_replace('+', '%2b', base64_encode(serialize($objs))). />
第二个页面$objList= unserialize(base64_decode(trim($_POST['objPost'])));$objs里面是一个数字,里面每个参数都是对象,现在传到第二个画面之后,变成了一个boolean型,
还请高手帮忙看看

解决方案 »

  1.   

    没有看懂你说什么?你把$objs和$objList的值贴出来
      

  2.   

    $objs?

    "objs" = Array [12]
    7 = Object of: stdClass
    5 = Object of: stdClass
    6 = Object of: stdClass
    8 = Object of: stdClass
    30 = Object of: stdClass
    19 = Object of: stdClass
    38 = Object of: stdClass
    37 = Object of: stdClass
    39 = Object of: stdClass
    36 = Object of: stdClass
    40 = Object of: stdClass
    41 = Object of: stdClass
      

  3.   

    第二个页面的trim操作和第一个页面的str_replace操作不对应吧。
      

  4.   

    base64_decode(trim($_POST['objPost']))这个得出的不负和unserialize()参数
      

  5.   

    或者objPost中的__sleep()么有返回东西
      

  6.   

    你把这个输出来看一下echo base64_decode(trim($_POST['objPost']));
      

  7.   

    第一个页面<input type="hidden" name="objPost" value = . base64_encode(serialize($objs)). />
    第二个页面$objList= unserialize(base64_decode($_POST['objPost']));
    试一下!