Hi - I have a piece of code which is working on in excess of 2000 sites, on wildly different server configurations with no errors. Today, I install it on a server which appears to have all the same phpinfo() settings, and I have hit a roadblock. I have never encountered this behaviour before and cant find ANYTHING online to explain it. Basically, this is a very simple php file with a multipart form in it. The for generates text fields with anested array of post values: name[1], name[2], name[3] etc etc These are sent by a post form, and on the following screen the $_POST values are captured and enetred into the database with the numeric indicator referencing a language setting. This, as I have mentioned has always worked without fail. So this new server had blank $_POST array, and after a huge amount of digging and playing, I have found that if I change the values to: name(1), name(2), name(3) etc etc it all works. However there are over 500 file sin this software suite, the vast majority fo which have the same kind of post form setup, and I really could do without going manually through each and every one to correct this output bug. So; my questions: 1a) Anybody ever see this behaviour before 1b) if so, any idea what causes it 2) Any idea how to solve it - php.ini setting or similar?? 3) Or a clever little php function I can wrap my forms in which will convert name[1] to name(1) Any help greatly appreciated, I am rapidly going bald with this one lol.
if it helps... php version: 5.1.6 cant see if suhosin is running, i am assuming not also causes failure of uploads and checkbox fields - basically anything which is not a simply labelled value in the posted form.
well, for anybody who googles at a later date with this issue, it is annoyingly mundane - the fix was right in front of me, and given the information i put above nobody could have fixed it, as the issue I hadnt even thought to detail. I was viewing the site via a plesk preview, using port 8443. Apparently this blocks certain $_POST functions. Changing to viewing on a static IP resolved everything. Go figure....
I've had a similar problem before, I ended up editting all of the scripts as it seemed the only way i could make it work.
what exactly is this software for, any link to what it is used for? I'm just curious on this as maybe it's something I might be interested in. Nice bit of info as well, I'll have to keep an eye out for this if I run into any problems...