Jump to content

Multiple-PMS


xyn

Recommended Posts

Hey!
I've got a small Private Messaging system, And I would
like to allow a larger box so people can send Pms to more
then one member, I wanted it so they ahve to separate
each member by a ','.

I have the basic idea on how to do it following my "array"
which is used to delete PM's with tick boxes, but that would
mean I will have to have more than one text box, it is quite
confusing...

If anyone could help. I would apreciate it.
- Thanks!
-- Ash
Link to comment
Share on other sites

yeah that's what that does because it explodes you normal box e.g. named users and then it explodes by ', ' so a comma and a space and creates an array called $users so in users we now have all the users with no comma and then the foreach $users as $user will rip each user out of the array and run what ever command u wish on them.

put the code working here [url=http://www.ukchat.ws/phpfreaks/users.php]http://www.ukchat.ws/phpfreaks/users.php[/url]

so e.g. code

[code]<form action="" method="post">
Users: <input type="text" name="users">
<input type="submit" name="submit" value="submit">
</form>
<?php
$users=explode(', ',$_POST['users']);
foreach($users as $user) {
echo $user.'<Br>';
}

?>[/code]


Liam
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.