Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: Handling Multiple Recipients
11-26-2013, 07:14 PM #1
Handling Multiple Recipients
I am thinking of adding the ability to send a PM to several people at once, and have some questions related to this...
(**Note: I am using Prepared Statements for security.)
1.) On Coding Forums, the site just takes a list of Usernames delimited by semicolons ( ; ).
Does that seem like a good approach?
2.) If I have a query string of Usernames delimited by semicolons in the URL, could that cause any issues?
3.) Are there any *security* risks in #2 if I sanitize things before I stick them in my Prepared Statement?
11-27-2013, 01:17 AM #2
- Join Date
- Nov 2011
- Ratio, Logic
- Thanked 6 Times in 6 Posts
You should show more trust to site where you were expecting to find answer of issue.
I think the thing is not related to get method. It is making an object or an array of elements where every element is user name. When it comes to send method/function it is just loop through that array.
$pm_users = array('Tpojka', 'doubledee', 'someoneElse');
foreach ($pm_users as $pm_user)
//code to send PM