Is there a common structure for a wordpress formular?

I highly recommand you to see this link. This will help you to respect coding standards in WP.

EDIT : add link I give in comments

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