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.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)