Re: QuickForms

From: Date: Tue, 30 Nov 2004 07:50:46 +0000
Subject: Re: QuickForms
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-15917@lists.php.net to get a copy of this message
Robert Caskey wrote:
have a form element group with html? I tried to have a group with labels and controls to produce output that looked like: Last Name ____________ First Name ___________ Middle Name _______________ instead of the (Last, First, Middle Name) _________ ___________ ________ as is shown in the examples, but all html seemed to end up outside the form ( rendered above in the browser).
You'll have to use a custom renderer. I recently did this simply using the IT static renderer. The template looked something like this: {form_name_label} <!-- the lable of the group element --> {form_name_first_label}: {form_name_first_label} {form_name_middle_label}: {form_name_middle_label} {form_name_last_label}: {form_name_last_label}
Similarly I would like to use QuickForms to do text fields in a table on my form with some labels at the top to create a kind of grid effect (Name, Email, Phone Number labels at the top and three rows of blank boxes below that so people could enter in some references). Any ideas on how to achieve this? I was feeling pretty good about things until I couldn't get the html to actually render in-line.
Fiddle with templates :) Aaron

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