form $_post action value gets truncated after it passes through two forms

I was missing quotes around my hidden attribute in my html form. The correct syntax is

echo "<input name="mygroup" type="hidden" value=".$_POST['groupname'].">";

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