June 28 2015

PHP some variable fail to post data to server

Tagged Under :

This was my first time facing this problem. When I post more than 1000 variable value to server, it only show me 1000 variable received and the rest was missing.

To solve this problem you need to increase max_input_vars number in PHP.ini to 3000 or 5000. It was because the max_input_vars default value was 1000. If you post more than the value server will ignore the rest.

if your server uses the Suhosin patch or after change the max_input_vars number the problem still same. you can try add
suhosin.post.max_vars = 3000 
suhosin.request.max_vars = 3000
to increase the maximum number of post variable.

June 08 2015

IOS css radius courners and glare on inputs

Tagged Under :

Inside the iOS devices have add some annoying styles on form input, particularly on input box and submit button. Below are the simple form on Desktop and iOS browser.



To fixed the border radius and gradient on IOS safari browser issue.
You can get rid of the webkits form, input, etc. styling with this:
input, textarea, select {
   -webkit-appearance: none;