Re: passing array
| From: | Yasuo Ohgaki | Date: | Sat, 31 Mar 2001 06:33:15 +0000 |
| Subject: | Re: passing array | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-6407@lists.php.net to get a copy of this message | ||
Use htmlspecialchars() instead of addslashes().
Different standard has different methods to escape special characters.
Read relevant document for that.
Regards,
--
Yasuo Ohgaki
""afan"" <afan@sprout.net> wrote in message
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