tags:

views:

28

answers:

1

I know that it is possible, I saw it few months ago in one app. I would like to achieve condition: if user invited 3 or more friends then... - How I could check it?

How could I show how many users are checked to invite? (I would use multi-friend-selector )

+1  A: 

The invited friends come into an array which can be accessed like this:

if(isset($_POST["ids"]))
{
   $count_invites = count($_POST["ids"]);

   // insert $count_invites into database against current user

}
Sarfraz
I will check it, thanks. But what about live count invited friends? How could I show how many users are checked to invite? (I would use multi-friend-selector )
John X
@John: As I said: `count($_POST["ids"]);` :)
Sarfraz
I mean, using JS... some counter which shows how many user we just selected to invite :)
Rin

related questions