Dobakat Posted January 19, 2007 Share Posted January 19, 2007 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. Quote Link to comment https://forums.phpfreaks.com/topic/34838-sending-a-messages-to-many-users-with-one-textfield/ Share on other sites More sharing options...
Jessica Posted January 19, 2007 Share Posted January 19, 2007 check out explode Quote Link to comment https://forums.phpfreaks.com/topic/34838-sending-a-messages-to-many-users-with-one-textfield/#findComment-164249 Share on other sites More sharing options...
Dobakat Posted January 19, 2007 Author Share Posted January 19, 2007 Thanks, I founded what I wanted. Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/34838-sending-a-messages-to-many-users-with-one-textfield/#findComment-164262 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.