php - error_reporting(E_ALL) problem -
i have put error_reporting(e_all) on top of php page comment gives me following notice rest of page work fine there no problem in page.
notice: undefined index: action in /var/www/cafe/view/ingredients.php on line 10 call stack: 0.0007 333108 1. {main}() /var/www/cafe/view/ingredients.php:0
what should remove notice top of page.
on instructions page <form method="post" action="instructions.php?action=add&id="> , on top of page action e.g $action=$_get['action']; give me notice –
you trying access index action
of array, index doesn't exist. example: $some_variable['action']
.
try run var_dump($some_variable);die;
, you'll see doesn't exist.
Comments
Post a Comment