about post data

Posted by Garnono on Stack Overflow See other posts from Stack Overflow or by Garnono
Published on 2010-03-30T11:23:50Z Indexed on 2010/03/31 0:13 UTC
Read the original article Hit count: 669

Filed under:

hi,everyone.my question like this:

post.php

<?php
$str = "testmytest";
$str_serialize = serialize($str);

http_post_fields("get_post.php", array('str' => $str_serialize));
?>

get_post.php

<?php
if (isset($_POST['str']))
{
  $echo $_POST['str'];

  $str = unserialize($_POST['str']);

  echo $str;
}
?>

i can not unserialize the $str, it is changed.who knows why? Thanks for everybody.

© Stack Overflow or respective owner

Related posts about php