homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

Best way to do a really long form?
Purple Martin

WebmasterWorld Senior Member 10+ Year Member

Msg#: 3131312 posted 4:09 am on Oct 23, 2006 (gmt 0)

I have to build a long form in a portlet application. It's really long, about 80 fields... it fills 6 sheets of A4 when printed. What is the best way to lay it out? Can I avoid splitting it into multiple screens (which would be a coding nightmare)? Any ideas welcomed!



WebmasterWorld Senior Member rocknbil us a WebmasterWorld Top Contributor of All Time 10+ Year Member

Msg#: 3131312 posted 4:57 am on Oct 23, 2006 (gmt 0)

Well, the non-Javascript version leaves you with long pages or multiple pages. If you can build it dynamically instead of static, splitting it is not really a coding nightmare:

foreach $v (keys %qs) {
unless (($v eq 'stepname') or ($v eq 'anything_else_you_dont_need_to_save')) {
$form .= qq¦<input type="hidden" name="$v" value="$qs{$v}">\n¦;

A PHP solution would be as easy. This allows you to keep track of each page's data through each step until the final page and doesn't require database interaction. Old-school long forms. :-) Of course, each step in the form needs to be dynamically generated.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved