X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id BB176D1B90C for ; Tue, 19 Aug 2003 13:30:41 -0300 (ADT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 98174-03 for ; Tue, 19 Aug 2003 13:30:31 -0300 (ADT) Received: from mail1.ihs.com (mail1.ihs.com [170.207.70.222]) by svr1.postgresql.org (Postfix) with ESMTP id BCDA3D1B8A2 for ; Tue, 19 Aug 2003 13:30:30 -0300 (ADT) Received: from css120.ihs.com (css120.ihs.com [170.207.105.120]) by mail1.ihs.com (8.12.9/8.12.9) with ESMTP id h7JGTBPM018774; Tue, 19 Aug 2003 10:29:11 -0600 (MDT) Date: Tue, 19 Aug 2003 10:29:15 -0600 (MDT) From: "scott.marlowe" To: =?iso-8859-1?q?=C2ngelo=20Marcos=20Rigo?= Cc: Subject: Re: Update problem In-Reply-To: <20030819142107.31023.qmail@web14807.mail.yahoo.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT X-MailScanner: Found to be clean X-MailScanner-SpamCheck: X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/84 X-Sequence-Number: 2261 On Tue, 19 Aug 2003, Ângelo Marcos Rigo wrote: > I have an update escript that works fine with text > fields but with an textarea version the script is > passing an empty value, for the "texto" field > Here is a snip of code that receives the values: > > $id = $_POST['id']; > $titulo = $_POST['titulo']; > $resumo = $_POST['resumo']; > $texto = $_POST['texto']; > print_r($texto); > include 'db.php'; > $query = "UPDATE revista SET titulo='$titulo', > resumo='$resumo', texto='$texto' WHERE id='$id'"; > > here is the "texto" field where i do write the > modifications to be updated: > > print ("Texto"); Hi Ângelo, welcome to the php list. Is the problem that the FORM is printed with an empty text area, or that, after entering text into the textarea that it doesn't get inserted into the database upon submission?