|
Comments for: yuri20011015
| Message # 1021443: |
|
Date: 08/09/04 22:51
By: Eugenio Costa Subject: RE: TextArea using this oo form I did in form.php: First: if (!$this->Values['Comentarios']) $this->Errors['Comentarios'] = 'Requerido.'; Then: <?new TextareaInput($this, 'Comentarios', '', 'cols="35" maxlength="100" rows=7 wrap=virtual class="form"'); $this->ErrorReport('Comentarios');?> And added after class TextInput extends FormControl { function Render() { return "<input type=\"Text\" name=\"".$this->InputName."\" value=\"$this->Value\" $this->Attributes>"; } } this: class TextareaInput extends FormControl { function Render() { return "<textarea name=\"".$this->InputName."\" $this->Attributes>$this->Value</textarea>"; } } Hope it helps, it worked for me! |
Previous Message | Next Message |


