RE: Re: [PEAR] How can I set a default value in DBDOFB?
| From: | Jose Manuel Zea | Date: | Wed, 03 May 2006 11:51:18 +0000 |
| Subject: | RE: Re: [PEAR] How can I set a default value in DBDOFB? | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-23914@lists.php.net to get a copy of this message | ||
>> The field $codtipo it´s a field that I need to set the value when I get
>>the
>> form with DBDOFB. In the way that this value is sent to the database
>> directly. How can I do it?
>>
>The same way as with any HTML_QuickForm instance. Use setDefaults().
>DBDOFB returns a normal HTML_QuickForm instance from getForm(). See
>the HTML_QuickForm docs.
>You can also do this in the postGenerateForm() callback (see FB docs).
>--
>Justin Patrin
Yes, thank you Justin. That is working. The only thing it´s that I need to
include the field in the HTML code to send the field value to the DB. What
I´m doing it´s to define it inside a not visible class via CSS:
<div class="hidden"><input name="codtipo" type="text"
value="3" /></div>
Is there a way to achieve the same without doing that or using the
postGenerateForm() callback?
______________________________________________
LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com