I used the thing from phpbuilder worked a treat, many thanks
""Ben Gillam"" <[EMAIL PROTECTED]> wrote in message
9gt53d$lfh$[EMAIL PROTECTED]">news:9gt53d$lfh$[EMAIL PROTECTED]...
> For example, if someone puts the following into a textbox..
>
> "Hi my name is bob smith
>
> and im talking to you
This might work. Untested.
$tokens = explode(" ", $message);
$num_tokens = count($tokens);
for ($i = 0; $i < $num_tokens; $i++) {
$new_message .= $token . " ";
}
$new_message = rtrim($new_message);
echo $new_message;
Regards,
Paul Meagher
- Original Message -
From: "Ben Gillam"
I recently had the same problem. I found my solution here
http://phpbuilder.com/columns/ying2718.php3?page=1
download and unzip ying2718.zip
You include outputlib.php at the beginning of your php program and wrap
$message
like this
print_output($message)
it works great!!
Debra Samso
Ben,
When you receive it, try using the nl2br function in PHP. See the manual.
-Flint
-Original Message-
From: Ben Gillam [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 21, 2001 8:52 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Get the contents of the textarea "as is"
For example, if