Welcome! Log In Create A New Profile

Advanced

Validation and PHP Error checking

Posted by Edias 
Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
Validation and PHP Error checking
October 12, 2011 04:28PM
I am doing some validation which I am sure is valid validation so to speak. The problem is that when PHP error checking is turned on messages like the one below will show on the page
"Undefined index: address in C:\xampp\htdocs\edias\Untitled1.php on line 41".
Will PHP error checking be turned of during Marking because I am sure those errors are only supposed to show during debugging.
avatar Re: Validation and PHP Error checking
October 12, 2011 04:33PM
Hi,

You can set it to show or hide errors on your page, have a look at: PHP: Error Reporting

student no: 77315138
Re: Validation and PHP Error checking
October 13, 2011 07:42AM
I know the error messages can be turned off or on. I just wanted confirmation that during marking they will be turned off.
Re: Validation and PHP Error checking
October 13, 2011 07:47AM
Thanks Riaz. You are a life(and time) saver. I managed to use
error_reporting(0); in the code to ensure that all the erro messages that were appearing during validation do not show on the web page.. Thanks again.
Re: Validation and PHP Error checking
October 27, 2011 10:21PM
TURN OFF ERROR CHECKING
Sorry, only registered users may post in this forum.

Click here to login