Re: [QuickForm] addElement('html', '<br />');
| From: | Sylvain Gourvil | Date: | Mon, 04 Jul 2005 15:55:32 +0000 |
| Subject: | Re: [QuickForm] addElement('html', '<br />'); | ||
| References: | 1 2 3 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-19863@lists.php.net to get a copy of this message | ||
Ian P. Christian wrote:
On Monday 04 July 2005 15:46, Sylvain Gourvil wrote:Tahnks a lot Ian. Well done, It is exactly what I needed. Have a good day ! Here's my simple code if someone need it : CODE ----------------------------------------- /** * Instanciation du nouveau formulaire */ $form = new HTML_QuickForm('InscriptionNewsletter','post'); $form->addElement("static", "staticEmail", '', $champsForm['email']); $email = $form->addElement("text", "email"); $email->setSize(30); $email->setMaxLength(150); $form->applyFilter('email','trim') ; $form->addRule('email', $formRules['emailValide'] , 'email'); $form->addElement('submit', 'bouton_submit', $boutons['Validation']); $form->display(); -- --------------------- Sylvain Gourvil Développeur PHP5, PEAR, SMARTY, POSTGRESQL Antiquités en FranceHi everybody ! I am trying to display a simple registration form for a newsletter. I want to dsiplay the text label on the first line and the text box on the second line but I did not succeed. I think some of you had already implemented it !$form->addElement('static'...... Have a look at that. Kind Regards,