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:
<html>
<head>
<title>Test PHP Script</title>
</head>
<body>
<form method=post action="textarea_test.php" name="Form1">
<textarea cols=50 rows=20 name=textarea>
//[a bunch of text goes here]
</textarea><br>
<input type=text name=text size=20 value="This is some text"><br>
<input type=submit name=Submit value="Submit">
<?php
if ($_POST[Submit] != "")
{
echo "<h1>_POST values</h1>";
echo "<p>Textarea submitted:</p>";
echo "<pre>" . $_POST[textarea] . "</pre>";
echo "<p>Textbox submitted:</p>";
echo "<pre>" . $_POST[text] . "</pre>";
echo "<p>Submit submitted:</p>";
echo "<pre>" . $_POST[Submit] . "</pre>";
}
?>
</form>
<?php
phpinfo();
?>
</body>
</html>
If anyone can point me in the right direction, I would appreciate it so
much!
Elizabeth
Elizabeth Lawrence
[EMAIL PROTECTED]