Page 1 of 1

PHP Form Help - Terminal Type Idea

Posted: Mon Sep 14, 2009 1:30 pm
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:

Re: PHP Form Help - Terminal Type Idea

Posted: Mon Sep 14, 2009 7:59 pm
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]

Re: PHP Form Help - Terminal Type Idea

Posted: Tue Sep 15, 2009 12:41 am
by Ollie Saunders
Try: explode(',', $wholeString, 3);