Jump to content

checkboxes via POST don't create array


albaserver

Recommended Posts

The default behaviour of the php.ini file would be easily changed using apache .htaccess hidden files somewhere on the web hosting directories. Have you checked for error messages in the apache error log file? How about to check the same form's values using a different language let's say bash or perl?  

Link to post
Share on other sites

to mikosiko: max_input_vars is 1000 :(

 

to ginerjim: no more code, only that one I posted in a blank page, nothin'else  :(

So you are writing a script that puts out a "bare" html page?  No headers, no meta, no scripts, no css styling? 

Link to post
Share on other sites

to mikosiko: max_input_vars is 1000 :(

 

to ginerjim: no more code, only that one I posted in a blank page, nothin'else  :(

Did you check in the output of phpinfo() if the suhosin extension is installed/enabled in your server?

Link to post
Share on other sites

Did you check in the output of phpinfo() if the suhosin extension is installed/enabled in your server?

 

"Additional .ini files parsed" in phpinfo() there is "/etc/php5/conf.d/suhosin.ini" as well.

 

 

So you are writing a script that puts out a "bare" html page?  No headers, no meta, no scripts, no css styling? 

 

Yes! When we found out that the problem was HTTP POST, I prepared an empty page with the only HTTP POST code and a very simple form. Nothin'else.

 

 

is the value 1,000 or is it 1000. these are different to a programming language because the , is a stop character that would result in the value 1 being used.

 

in phpinfo() is 1000 without comma or point.

 

 

Rob

Link to post
Share on other sites

If the suhosin.ini was parsed then phpinfo() should show some of the setup variables for it (or look directly in the ini file)... Even when the default value for all of them is 1000 worth to check them:

Suhosin.post.max_vars

Suhosin.get.max_vars and

Suhosin.request.max_vars

 

Here is the link to the configuration options http://www.suhosin.org/stories/configuration.html

Link to post
Share on other sites

Some things to do:

  • Use either your browsers developer tools or a tool like Fiddler to inspect the actual request data and ensure the browser is sending all three values in the first place.
  • var_dump($_POST) as the very first thing the script does, even before session_start().
  • what happens if each checkbox has a different name?
  • post the output of your phpinfo() call, or a link to the phpinfo page for us to see.
Link to post
Share on other sites
  • 1 month later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.