Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

Best way to do a really long form?

4:09 am on Oct 23, 2006 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Jan 21, 2002
votes: 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!
4:57 am on Oct 23, 2006 (gmt 0)

Senior Member

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

joined:Nov 28, 2004
votes: 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.


Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members