Re: POST/GET - if there is a dot in the name it's changes to "_"
| From: | Analysis & Solutions | Date: | Tue, 12 Aug 2003 18:17:04 +0000 |
| Subject: | Re: POST/GET - if there is a dot in the name it's changes to "_" | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-159310@lists.php.net to get a copy of this message | ||
Arnau:
On Tue, Aug 12, 2003 at 05:28:54PM +0000, Arnau Rebassa wrote:
> I'm having the same problem as the bug report
> http://bugs.php.net/bug.php?id=7987. They say that's not a
> bug it's a
> feature... Anybody knows where I can find which characters are changed and
> by which character?
You're should use field names which conform to the varialbe naming
conventions. If you do, you won't run into these conversion problems.
Here's what the manual says are valid:
"Variable names follow the same rules as other labels in PHP. A valid
variable name starts with a letter or underscore, followed by any number
of letters, numbers, or underscores...
Note: For our purposes here, a letter is a-z, A-Z, and the ASCII
characters from 127 through 255 (0x7f-0xff)."
http://php.net/language.variables
So, I guess to answer your question, it seems anything that's not in this
list of valid characters will get turned into "_"
But, let me state again: use valid names in the first place.
Enjoy,
--Dan
--
FREE scripts that make web and database programming easier
http://www.analysisandsolutions.com/software/
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
4015 7th Ave #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409