Received: from eater.zotnet.com (IDENT:root@snapuser87.pacificcrest.net [216.36.24.87]) by hub.org (8.9.3/8.9.3) with ESMTP id AAA25843 for ; Thu, 29 Jul 1999 00:05:20 -0400 (EDT) (envelope-from zot@ZotConsulting.com) Received: from ZotConsulting.com (snapuser115.pacificcrest.net [216.36.24.115]) by eater.zotnet.com (8.8.7/8.8.7) with ESMTP id VAA31046 for ; Wed, 28 Jul 1999 21:46:35 -0700 Message-ID: <379FD922.E3230B9B@ZotConsulting.com> Date: Wed, 28 Jul 1999 21:31:30 -0700 From: "Zot O'Connor" Organization: Zot Consulting X-Mailer: Mozilla 4.5 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: pgsql-sql@hub.org Subject: Re: Subject: Form making with psql and php.cgi References: <199907290300.XAA12294@hub.org> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit > Date: Thu, 29 Jul 1999 12:35:58 +1000 > From: "Inform(Якутскэнерго)" > Subject: Form making with psql and php.cgi > > Hi everybody! > I use PostgresSQL on Unix with php.cgi. > So i wanna update some fields in my db. > These fields contain some words. When i read from db and try to put in > my WWW-form it places only first word of the field. > What should i do? > It sounds like you are taking a sentence and are only parse the first word. You form.html should have something like: Then in the php script you should have cmd="update tablename VALUES set sentence='$sentence'"; pg_exec($conn, $cmd); or some such. -- Zot O'Connor www.ZotConsulting.com www.WhiteKnightHackers.com