pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: scott.marlowe <scott.marlowe@ihs.com>
To: Ângelo Marcos Rigo <angelo_rigo@yahoo.com.br>
Cc: pgsql-php@postgresql.org
Subject: Re: Update problem
Date: Tue, 19 Aug 2003 10:29:15 -0600 (MDT)
Message-ID: <Pine.LNX.4.33.0308191028240.9295-100000@css120.ihs.com> (raw)
In-Reply-To: <20030819142107.31023.qmail@web14807.mail.yahoo.com>

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 ("<tr><td>Texto</td><td><textarea cols=\"90\"
> rows=\"20\" value=\"$myrow[3]\"
> name=\"texto\">$myrow[3]</textarea></td></tr>");

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?




view thread (9+ messages)  latest in thread

Message-ID: <Pine.LNX.4.33.0308191028240.9295-100000@css120.ihs.com>
Permalink:  ../Pine.LNX.4.33.0308191028240.9295-100000@css120.ihs.com/
Also on:    postgresql.org/message-id/Pine.LNX.4.33.0308191028240.9295-100000@css120.ihs.com

 · 

reply

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: scott.marlowe@ihs.com, angelo_rigo@yahoo.com.br
  Subject: Re: Update problem
  In-Reply-To: <Pine.LNX.4.33.0308191028240.9295-100000@css120.ihs.com>
  References: <20030819142107.31023.qmail@web14807.mail.yahoo.com> <Pine.LNX.4.33.0308191028240.9295-100000@css120.ihs.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