Page 1 of 1

Check boxes with error from a form since install xampp 1.7.7

PostPosted: 05. October 2011 07:00
by ruxee
Since I install the Xampp 1.7.7. with the PHP/5.3.8 this error appears in every form which send by post method checkboxes. Why?

Notice: Undefined variable: CHKinventario in C:\xampp\htdocs\livingwage\nv_boleta_reg.php on line 3

The CHKinventario var is used in a form inside a PHP file called nv_boleta_reg.php. The form calls the nv_boleta_reg.php to insert the data into a table.

Before install the 1.7.7 version nothing appears, what it changes?

Re: Check boxes with error from a form since install xampp 1

PostPosted: 05. October 2011 07:16
by Sharley
You need to edit the \xampp\php\php.ini file and change the error reporting settings to eliminate notices.

Why? you ask.
XAMPP is designed for developers and so need all the errors, warnings and notices to be displayed. :)

Find this line about 516
Code: Select all
error_reporting = E_ALL | E_STRICT
and change so it looks like this
Code: Select all
error_reporting = E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR
Save the file and restart Apache.

Try again. your script.

This will allow errors but will disable most of the notices and other annoying messages.

Good luck.

Re: Check boxes with error from a form since install xampp 1

PostPosted: 06. October 2011 14:47
by Altrea
better then to edit the error_reporting would be to eliminate this warning by editing the sourcecode.
If there is only one warning, this would be very easy.

Is that your own script or do you use a script you have downloaded in the internet?