$val ); $result = @ldap_mod_add( $ds, $dn, $new_entry ); if( $result ) header( "Location: edit.php?server_id=$server_id&dn=$encoded_dn&modified_attrs[]=$encoded_attr" ); else pla_error( "Failed to add the attribute.", ldap_error( $ds ) , ldap_errno( $ds ) );