Re: Update problem

Поиск
Список
Период
Сортировка
От scott.marlowe
Тема Re: Update problem
Дата
Msg-id Pine.LNX.4.33.0308191028240.9295-100000@css120.ihs.com
обсуждение исходный текст
Ответ на Update problem  (Ângelo Marcos Rigo <angelo_rigo@yahoo.com.br>)
Ответы Re: Update problem  (Ângelo Marcos Rigo <angelo_rigo@yahoo.com.br>)
Список pgsql-php
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?


В списке pgsql-php по дате отправления:

Предыдущее
От: "scott.marlowe"
Дата:
Сообщение: Re: Postgres connection
Следующее
От: Ângelo Marcos Rigo
Дата:
Сообщение: Re: Update problem