i create project for customer.
when i run the project in wamp server i can view project correctly , but when costumer running project in our wamp server face this error ,
undefined index : Name in ~\order.php on line 12
undefined index : Name in ~\order.php on line 13
and line 12 and 13 is :
$Name = $_REQUEST['Name'];
$PhoneNo = $_REQUEST['PhoneNo'];
i want know that how i can view this error in my wamp server.
withal i replace code with :
if(isset($_REQUEST)){
$Name = $_REQUEST['Name'];
$PhoneNo = $_REQUEST['PhoneNo'];
}
but costumer so face this error .
i way that i face this error with setting php.ini
withal part of my php.ini is :
; - error_reporting = E_NOTICE
thanks.
You may want to try using strict error reporting to see errors on your server and then use something like the ternary operator suggested by hsz. You will see all errors output in the browser window with the following line of code at the very top of your PHP script just below the first <?php
error_reporting(E_ALL ^ E_STRICT);
to turn error reporting off so you don't see errors use this instead.
error_reporting(0);