First thing I would like to say is that you have to seperate your form names.
Else, since all form names are the same, you get one username.
Second, having the
PHP Code:
if ($username == "")
{ // no point in checking the permission if they dont want to do anything to the confession
//eval(print_standard_error('invalid_username'));
// do nothing
}
else
{
is abit redundant. just say if (!empty($username))
Third, if you pass invite_username as a STR, you will break it as it is an array of usernames.
you must pass it without a datatype.