PHP contact form not redirecting [closed]

Because the url is not correct.

The + sign is for concatenating strings in javascript language. You should use . sign.

header('Location: ' . $url);

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