error_reporting(E_ALL)问题

i have put error_reporting(E_ALL) on top of my php page now i comment this but it gives me the following notice but the rest of page work fine there is no problem in the 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 i do to remove the notice from the top of my page.

on instructions page <form method="post" action="instructions.php?action=add&id="> and on the top of this page i get the action e.g $action=$_GET['action']; but this give me the notice –

You are trying to access index action of some array, an index that doesn't exist. Example: $some_variable['action'].

Try to run var_dump($some_variable);die; and you'll see that it doesn't exist.

Read the error message and look at the line of code it refers to (line 10). You're trying to access something ('action') which isn't defined.