Re: help needed: is this a bug?
| From: | CPT John W. Holmes | Date: | Thu, 24 Apr 2003 19:21:34 +0000 |
| Subject: | Re: help needed: is this a bug? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-145190@lists.php.net to get a copy of this message | ||
Sounds like the 'ole Apache 2 / PHP bug where POST data gets duplicated. I
can't remember which versions work better together, but it's not recommended
to use Apache 2 with PHP yet. "Upgrade" to the latest Apache 1.3 series.
---John Holmes...
----- Original Message -----
From: "ichim tiberiu" <tibi@life.org.ro>
To: <php-general@lists.php.net>
Sent: Thursday, April 24, 2003 12:39 PM
Subject: [PHP] help needed: is this a bug?
> Hello people,
> I have a problem with a website i'm working on, I am desperatly seeking
> for help
>
> I have the following setup: redhat 8, apache 2.45, php 4.3.2-RC1 and
> mysql 4.0.10-gamma-standard.
>
> The problem: parts of the text from a textarea region is multiplied
> (some paragraphs, etc) and written like that in the database. And this
> happens especially with bigger text, at least one or two pages (about
> 4000 characters). My question is: what am I doing wrong? how can I
> prevent this?
>
> Details: I have a standard form like this:
>
> <form method="POST" enctype="multipart/form-data"
> action="/2.php">
> <textarea name="continut" cols=40 rows=10></textarea><BR>
> <input type="submit" value="Try">
> </form>
>
> with 2.php, the handler, being:
>
> $continut = $_POST['continut'];
> $query = "INSERT INTO proba (continut) values ('$continut')";
> $result = mysql_query($query) or die (mysql_error());
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>