PHP Form Help - Terminal Type Idea

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
codybecker
Forum Newbie
Posts: 4
Joined: Mon Sep 14, 2009 1:24 pm

PHP Form Help - Terminal Type Idea

Post by codybecker »

Ok, so I have a private messaging system, I want and i know its possible because anything is possible in the development world, I want to have one long text box. When people type in the text box i want it to figure out if they are sending a message or something else. So i want it to review the text entered and (for learning purposes lets start small) send it to the other user. So the text would look something like this inside the text box.... username,subject text,message text

So when they press a button it sends the message to username with a subject of subject text and a message text of message text.

Now this is either really easy and im to dum to find it or its a bump that nobody knows. Either way i searched all over and couldnt find a thing :banghead:

If you figure it out i would owe you :drunk:
codybecker
Forum Newbie
Posts: 4
Joined: Mon Sep 14, 2009 1:24 pm

Re: PHP Form Help - Terminal Type Idea

Post by codybecker »

Ok, im a complete noob.... if anybody could understand the above coding suggestion and wouldnt mind helping me out this is what i have....

<form name="message" action="process.php" method="POST">
<input type="text" name="text" size="50"><input type="button" value="Button" name="B3">
</form>

and i want it to send a PM on submit or enter with the following fields.
- to
- subject
- message text
all seperated by commas (,) so....... [codybecker,test,this is a test of the PM system] [submit]
User avatar
Ollie Saunders
DevNet Master
Posts: 3179
Joined: Tue May 24, 2005 6:01 pm
Location: UK

Re: PHP Form Help - Terminal Type Idea

Post by Ollie Saunders »

Try: explode(',', $wholeString, 3);
Post Reply