Jump to content

Sending a Messages to Many users with one TextField.


Dobakat

Recommended Posts

I got my own private messaging system up and running for my website, but one thing I want to do is enable the users to send a mail to many recievers.
Right now if they want to send the same message to 2 other users, they have to send it twice.
I want to allows users to type "dobakat, deneb, poncho, pablo" in the textfield and have the message sent to all those users. 
Some ways I could think of is to use an array, then get the size and do a for loop, or while loop. The thing I am having problem is how to manipulate the string so that instead of having a big string "dobakat, deneb, poncho, pablo" to have strings, "dobakat" "deneb" "poncho" (potentially stored in an array) and so on.
I tried looking for a tutorial to do this, but I fail to find it.
Well, I appreciate the time you took to glance at my post, and thanks in advance.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.