On 12 August 2003 18:29, Arnau Rebassa wrote: > Hi all, > 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?
The bug you quoted doesn't seem to be at all relevant to the problem mentioned in your subject. However, assuming you're referring to names of form elements, then: Since the names given by form element name= attributes can potentailly be used as PHP variable names (if register_globals is on), only characters legal in PHP variable names can be guaranteed to work -- all others may cause unexpected side-effects. The . character is treated as a special exception and converted to _ since it occurs in names auto-generated by the browser, and outwith the user's control. Basically, you are best off sticking to a-z, 0-9 and _ in basic form element names -- if you use [] to send the value(s) to a PHP array, you can, of course, put anything legal as a PHP array key (which is pretty much anything!) between the brackets. Cheers! Mike --------------------------------------------------------------------- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds Metropolitan University, Beckett Park, LEEDS, LS6 3QS, United Kingdom Email: [EMAIL PROTECTED] Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php