For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > May 2005 > Re: [PEAR] More FormBuilder questions









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PEAR] More FormBuilder questions
Justin Patrin

2005-05-09, 3:56 am

On 5/8/05, Dan Rossi <pear@electroteque.org> wrote:
> My usual form layout is two or three fields across columns. The dynamic
> flexy renderer will not work with this example as it means generating
> down the page. I am using a static example of quickforms , however when
> I add the label and html its missing the asterix's. for required
> fields.
>=20
> My question is how do I set up the required fields, and then let it
> render the asterix's . On top of this I usually need to add extra
> buttons to the form and these are usually image buttons and hidden
> fields so would the $fb object still be referencing QuickForms so I can
> add the extra form elements ?
>=20


As usual, I'm not sure what you're asking. You're mentioning multiple
supposed problems you have, a few things you want, and then ask a
question which doesn't make much sense.

You can, of course, edit the QF object that FB gives you. I suggest
looking into insertElementBefore.

if you want to do a 3 column thing you can always make your own QF
renderer or just use PHP to loop through the elements and choose when
to make a break. Or you can simply make the element template put the
elements in float: left divs instead of a table.

Required fields have the asterixes added by the renderer.

--=20
Justin Patrin
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com