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'].">";