leothelion Posted August 13, 2009 Share Posted August 13, 2009 prog 1... $ali = serialize($alias); $comm = serialize($comment); header("location:modreply3.php?host=$host1&alias=$ali&comment=$comm"); modreply3.php.... $host1 = $_GET['host']; $al = unserialize($_GET['alias']); $comm = unserialize($_GET['comment']); the trouble with dropping spaces is with the comment. "test comment" is being passed as "test" http://mandy4/ccadns/modreply3.php?host=jlm2&alias=a:2:{i:0;s:11:%22jlm2alaise2%22;i:1;s:9:%22jlm2alias%22;}&comment=a:1:{i:0;s:4:%22test%22;} I'm using serialize because alias & comment are arrays. any ideas on a fix?? thanks Link to comment https://forums.phpfreaks.com/topic/170117-solved-serialize-dropping-spaces/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.