X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id 97D11310A56 for ; Tue, 1 Jul 2003 13:43:30 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 66114-09 for ; Tue, 1 Jul 2003 10:43:20 -0300 (ADT) Received: from wolff.to (wolff.to [66.93.249.74]) by svr1.postgresql.org (Postfix) with SMTP id 678CF3106D4 for ; Tue, 1 Jul 2003 10:43:17 -0300 (ADT) Received: (qmail 2040 invoked by uid 500); 1 Jul 2003 13:46:57 -0000 Date: Tue, 1 Jul 2003 08:46:57 -0500 From: Bruno Wolff III To: Jeff Cc: Frank Bax , pgsql-php@postgresql.org Subject: Re: PHP form Creates Blank DB entries Message-ID: <20030701134657.GA1999@wolff.to> Mail-Followup-To: Jeff , Frank Bax , pgsql-php@postgresql.org References: <3EC8256A-AB16-11D7-8634-00039308EB2C@hwcn.org> <5.2.1.1.0.20030630131653.00aa7df0@pop6.sympatico.ca> <20030630222259.GI1614@zoidtechnologies.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030630222259.GI1614@zoidtechnologies.com> User-Agent: Mutt/1.5.4i X-Archive-Number: 200307/3 X-Sequence-Number: 2115 On Mon, Jun 30, 2003 at 18:22:59 -0400, Jeff wrote: > > also, I would suggest running each of the variables through a function that > strips out html tags (since you don't really care about allowing them in > this case, right?).. you can do that with strip_tags.. see > http://php.net/strip_tags Wouldn't it be better to replace <, >, " and & with <, >, " and &, resprectively since those characters could legitimately appear in at least some of those strings?