PHP Classes

how to format form

Recommend this page to a friend!

      Wizard  >  All threads  >  how to format form  >  (Un) Subscribe thread alerts  
Subject:how to format form
Summary:Question on how to format form
Messages:2
Author:Shed H.
Date:2005-03-09 15:55:58
Update:2005-03-15 08:35:29
 

  1. how to format form   Reply   Report abuse  
Picture of Shed H. Shed H. - 2005-03-09 15:55:58
Dave,

First off, thanks for all your hard work. This is exactly what I been looking for at phpclasses. But I have a WISH-I-knew-how-TO-DO list.

Here is what I am trying to accomplish:

Drivers name:____input__________ Spouse:_____input________
license:____input__________ _____input________

Benefitor age male female
___input_____ _input_ box box


How would these two scenarios be accomplished? I thinking CSS what is your take this?

TIA,
Shed

  2. Re: how to format form   Reply   Report abuse  
Picture of Dave Dave - 2005-03-15 08:35:29 - In reply to message 1 from Shed H.
Hiya

I replied to this as a mail, but it's only on a second glance that I've seen that you are perhaps not so much referring to how to get the inputs on the wizard, but rather how to lay them out, especially with respect to laying multiple inputs on one line.

I've shied away from allowing that (the inputs are actually tabulated) for the simple reason that I've spent a lot of time in doing dynamic form generation, and I've found this to be the "safest" way to do it -- since you can't always guarantee sizing and the like. Also, you can't always guarantee the length (and therfore text-wrapping) on the question(s) asked -- it's very important to maintain easy readability for the user.

The wizard class is aimed more at ease of use for the user than at niftiness, and this is a place where it shows, because, whilst you might like to lay out your items in some fashion other than one question per line, I've seene how users battle with that kind of layout -- particularly when they miss an input and are either denied further access until it's filled in, or simply end up having given half information. But the choice is yours as to how you actually deal with users.

Also, the wizard class was generated as a generic solution to a broad problem (data-driven dynamic forms) as well as a very clear problem: the captuting of the data required to generate those forms. I released it because I thought it might take some of the tedium out of another developer's life -- but it may not be completely what you're looking for!

Still, it is opensource: you are more than welcome to make your own modifications, and that's why I love opensource: if you want something that doesn't fit within my scope, you are more than welcome to take the code and twist it to fit your solution.