Tuesday, June 30th 2009


Dots not valid characters in PHP POST variables, and replaced with underbars
posted @ 8:01 am in [ Fixing Things -PHP -Web Design ]

So here I am, throwing my hands up and shouting at the screen, as as far as I can tell PHP is converting POST variables names from Market Live like

billContact.person.firstName=Alex&

to

billContact_person_firstName=Alex&

anyway… it is !!!!!

Aparrantly .s are not valid in variables names in PHP so it converts them to _s automatically!

http://stackoverflow.com/questions/283751/php-replaces-spaces-with-underlines

Wow ā€“ how annoying is that ā€“ and just thought Iā€™d share the pain with everyone else…..


Leave a Reply