Check boxes with error from a form since install xampp 1.7.7

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Check boxes with error from a form since install xampp 1.7.7

Postby ruxee » 05. October 2011 07:00

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?
Image
ruxee
 
Posts: 5
Joined: 11. April 2007 23:33

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

Postby Sharley » 05. October 2011 07:16

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.
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

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

Postby Altrea » 06. October 2011 14:47

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?
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 8286
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 54 guests