CodyBecker Posted January 4, 2010 Share Posted January 4, 2010 Hi all, (Im new to this so go easy on me ) I have a messaging system set up and i want one input field to contain the location to be sent and the message. So i basically want a text-box that will contain this information in this format.... [location], [text to send] so . . . . . if i were sending a message to ABC i would type into the text box . . . ABC, Hi how are you So im guessing i would use explode to find the receiver name (ABC) and the message text (Hi how are you) and post them. Link to comment https://forums.phpfreaks.com/topic/187086-explode/ Share on other sites More sharing options...
trq Posted January 4, 2010 Share Posted January 4, 2010 Sorry, but firstly... this isn't the place to ask php questions. This board is for help installing and configuring php. Anyway, I don't see a question in your post, so I'll just assume your looking some guidance. explode would definately be one way to get the data you are after. You'll likely also want to look at the limit argument in case a message contains a , you won't wont the message broken into pieces as well. Link to comment https://forums.phpfreaks.com/topic/187086-explode/#findComment-987966 Share on other sites More sharing options...
CodyBecker Posted January 4, 2010 Author Share Posted January 4, 2010 So which board would be best for me? Link to comment https://forums.phpfreaks.com/topic/187086-explode/#findComment-987968 Share on other sites More sharing options...
trq Posted January 4, 2010 Share Posted January 4, 2010 PHP Coding Help, but don't just start a new thread. You can report this one to be moved if you like. (Bottom right hand corner of your first post). Link to comment https://forums.phpfreaks.com/topic/187086-explode/#findComment-987972 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.