Use htmlspecialchars() instead of addslashes().
Different standard has different methods to escape special characters.
Read relevant document for that.
Regards,
--
Yasuo Ohgaki
""afan"" <[EMAIL PROTECTED]> wrote in message
002a01c0b957$b21b97e0$0e1f49d1@07dzh2k322">news:002a01c0b957$b21b97e0$0e1f49d1@07dzh2k322...
hi guys,
my problem is how to pass an array to other page. E.g. I have an array of
randomly choose numbers,
11, 7, 5, 10, 6
After I serialize that array I'm getting
a:5:{i:0;s:2:"11";i:1;s:1:"7";i:2;s:1:"5";i:3;s:2:"10";i:4;s:1:"6";}
Then I addslashes:
a:5:{i:0;s:2:\"11\";i:1;s:1:\"7\";i:2;s:1:\"5\";i:3;s:2:\"10\";i:4;s:1:\"6\";}
After using form <input type=hidden ...> and submitting I have only first part,
up to first " (quote)
a:5:{i:0;s:2:\
What I have to do?
Thanks!
Afan
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]