Skip to content

Why is max_input_vars ignored?

I have max_input_vars set to 10000 in .htaccess. ini_get(‘max_input_vars’) correctly returns 10000 and phpinfo correctly shows the local value of max_input_vars to be 10,000 (with a master value of 1,000) and yet a sample script on a GoDaddy shared server with anything more than 1,000 <input ty…

cakephp button add more / less fields

Hello I am trying to make a button that would allow me to add 2 additional fields to my form: 1 text type fields and 1 multiple choice selector (see image) fields I would like to be able to add these …

How to echo in PHP [closed]

Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed last year. Improve this question I am tr…

How to pass a variable in PHP from a Python file?

I’m trying to call a Python script in a PHP file and pass a variable value from that script after pressing the submit button. I have it: index.php test.py Both files are in the same folder. Why is it not working? I’d like to do this without Flask / Django. Answer You can’t declare a variable…

Put elements from post php into an array and then in a table Mysql

I have tryed many things.. need simply to retriev values posted from another page put in array and then add the values to a table with unique name then Answer Try something like this ($_POST is an array allready, as mentioned by @EL_Vanja): will printout: And for the query part: And the query will look like:

issue with php mail function

I am writing a PHP script for taking data from HTML form and send it to a specific email. but getting errors shown in pictures. how to resolve it?