Re: QF null inserts

From: Date: Thu, 18 Nov 2004 15:52:17 +0000
Subject: Re: QF null inserts
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-15640@lists.php.net to get a copy of this message
> I am using FormBuilder to handle the DB and form generation. My question > is.. If I leave a field blank, it inserts a space into the db, what I > would like it to do is just insert a null value. The reason for this > is.. I need to be able to have people "SAVE" the form and come back at a > later date. Since it inserts that space after they submit it.. when they > come back it has "something" in the space and lets it validate (which I > do not want), except for when I am requiring a nonzero field. $form = new HTML_QuickForm('form'); [...] $form->applyFilter('__ALL__', 'trim'); -- Massimiliano Arione :: http://www.garak.it/ :: ** NO WORD http://www.gnu.org/philosophy/no-word-attachments.html ** ** NO HTML http://www.efn.no/html-bad.html **

« previous php.pear.general (#15640) next »