Re: PHP Bug or just a strange behaivor?
| From: | Chris Boget | Date: | Wed, 09 Jul 2003 14:12:44 +0000 |
| Subject: | Re: PHP Bug or just a strange behaivor? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-154554@lists.php.net to get a copy of this message | ||
> So I though that you couldn't have dots in your array names... Just to
> be sure I wrote a small test program like this:
[snip]
> So... anyone know what's up?
I believe that if you do it manually in a script, it works fine. But if PHP
gets/sets the value from POST, GET, COOKIE, etc. it converts the dot
to an underscore.
Using the same test script (using donald.1), store it in a cookie and then
retrieve it. Send it as POST or GET then try to display the value. Really
good odds are that the dot will be converted. Again, I belive this is in
the documentation, but I can't rightly remember where. :|
Chris