Passing link parameter values to form

Sorry for this question,
I founded the solution, now I know that i’m a dummy.

if($_GET['action'] == 'edit')

for everyone has my same drama.

(the question remains open for better suggestions about doing that, in the best and most secure way)

Tank you for any suggestion.