From: Ângelo Marcos Rigo <angelo_rigo@yahoo.com.br>
To: "Ângelo" Marcos Rigo <angelo_rigo@yahoo.com.br>
To: pgsql-php@postgresql.org
Subject: Re: Update problem
Date: Tue, 19 Aug 2003 11:44:37 -0300 (ART)
Message-ID: <20030819144437.14997.qmail@web14805.mail.yahoo.com> (raw)
In-Reply-To: <20030819142107.31023.qmail@web14807.mail.yahoo.com>
and i dont know why but if the "texto" field (wich is
a text data type on postgres) is empty and i write
something the update happen with success.
--- Ângelo Marcos Rigo <angelo_rigo@yahoo.com.br>
escreveu: > 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 ("<tr><td>Texto</td><td><textarea cols=\"90\"
> rows=\"20\" value=\"$myrow[3]\"
> name=\"texto\">$myrow[3]</textarea></td></tr>");
>
> Thank´s in advance
>
> =====
> Ângelo Marcos Rigo
> AMR Informática
> (51) 3348 0870
> Rua Pe. Alois Kades 400/210
> Porto Alegre /RS/Brasil
> http://amr.freezope.org
> angelo_rigo@yahoo.com.br
>
>
>
>
_______________________________________________________________________
> Desafio AntiZona - Um emocionante desafio de
> perguntas e respostas que
> te dá um Renault Clio, kits de eletrônicos,
> computadores, notebooks e
> mochilas. Cadastre-se, participe e concorra!
> www.cade.com.br/antizona
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to
majordomo@postgresql.org
=====
Ângelo Marcos Rigo
AMR Informática
(51) 3348 0870
Rua Pe. Alois Kades 400/210
Porto Alegre /RS/Brasil
http://amr.freezope.org
angelo_rigo@yahoo.com.br
_______________________________________________________________________
Desafio AntiZona - Um emocionante desafio de perguntas e respostas que
te dá um Renault Clio, kits de eletrônicos, computadores, notebooks e
mochilas. Cadastre-se, participe e concorra!
www.cade.com.br/antizona
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-php@postgresql.org
Cc: angelo_rigo@yahoo.com.br
Subject: Re: Update problem
In-Reply-To: <20030819144437.14997.qmail@web14805.mail.yahoo.com>
References: <20030819142107.31023.qmail@web14807.mail.yahoo.com> <20030819144437.14997.qmail@web14805.mail.yahoo.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox