My authors need to be able to preview their upload images and manipulate and scale

i believe one way to do what you want would be to simply add an action="post.php" to your form. so the form redirect user to post.php onsubmit in which you can get the user input through $_POST

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