Hi there! I hope you can help me out please.
I have a private messaging system we custom coded, and to select who the message is addressed to we have a select menu with a list of all users names which we fetch from mysql via PHP.
Because we allow more than one recipient, we actually have 10 select menus with all the names and hide some of them with javascript so that they only show up if the sender wants to submit to more than one person.
This works, but is a really messy option.
What I’ve been trying to work on (and downloading zip files which seem really overkill) and had very little success is to create a Javascript where we can put an array of names from PHP (this I can do no problem) and then have one input box where the sender can start typing a few letters of the name, and suggestions come up a little bit like on Facebook!
I was wondering if anyone has a solution such of this that they could possibly share? I would also need it to only allow 10 selections max (although we do check this with PHP too). A perfect example of this is the facebook private messaging thing, where it lets you put the names you want to send the message to in one box.
Hope this makes sense, and looking forward to your reply. I will really appreciate any help.