Thanks, Dan. I copied your code exactly and posted it here:
http://www.tidefans.com/test.php I pasted a large part of O'Henry's "Gift of
the Magi" into the textarea, and it gets repeated, as before.
Thanks for any help,
Elizabeth
-Original Message-
From: Dan Tappin [mailto:[EMAIL PROTECTED]
Sent: Monday, February 28, 2005 6:59 PM
To: Elizabeth Lawrence
Subject: Re: [PHP] textarea posting duplicate text
Create a new file:
test.php
with this exactly in the contents:
TEST
Load the page, enter some text and hit submit. Rule out some strange
issue with your page. Confirm it's a PHP issue not a coding one.
Dan T
On Feb 28, 2005, at 8:03 AM, Elizabeth Lawrence wrote:
> Hello. I have been asked to look at a PHP issue for someone, and I
> can't
> figure out what the problem is. I'm hoping one of you experts can help!
>
>
>
> They are using Red Hat Linux / Ensim Pro 4.0.2, PHP 4.3.10, and Apache
> 2.0.
>
>
>
> The problem: When a lot of text is entered into a textarea on a form,
> the
> text that shows up in the $_POST['textarea'] variable has the text
> that was
> entered, but it is duplicated. This is causing problems for their
> forums.
> Here is a very simple script I placed on the server:
> www.tidefans.com/textarea_test.php (code below)
>
> When I place the same script on another server I have access to, the
> textarea text is "posted" fine.
>
> Is this a PHP setting somewhere that I'm missing?
>
>
>
> Here is the code for the PHP script mentioned above:
>
>
>
>
>
> Test PHP Script
>
>
>
>
>
>
>
>
>
> //[a bunch of text goes here]
>
>
>
>
>
>
>
>
> if ($_POST[Submit] != "")
>
> {
>
> echo "_POST values";
>
> echo "Textarea submitted:";
>
> echo "" . $_POST[textarea] . "";
>
> echo "Textbox submitted:";
>
> echo "" . $_POST[text] . "";
>
> echo "Submit submitted:";
>
> echo "" . $_POST[Submit] . "";
>
> }
>
> ?>
>
>
>
>
> phpinfo();
>
> ?>
>
>
>
>
>
>
>
> If anyone can point me in the right direction, I would appreciate it so
> much!
>
> Elizabeth
>
>
>
> Elizabeth Lawrence
>
> [EMAIL PROTECTED]
>
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php