eb Developers constantly make trade-offs; sometimes sacrificing usability for speed and sometimes sacrificing speed for usability. One example of such a trade-off becomes evident when you consider the task of creating a multi-page form. Multi-page forms are common, because on one hand, developers try to avoid lengthy pages that force the user to scroll more than is necessary. On the other hand, developers attempt to avoid expensive return trips to the server to serve multiple pages when one will do. When you separate multi-page forms into separate Web pages, the complexities of storing state come into play: Multi-page forms are more difficult to manage than single-page forms, because developers must store the user entries from preceding pages and create navigational aids for moving forward and backward between the form’s pages.When you decide to opt for a multi-page form over a long scrolling from, you then have to decide how much of the form to display to the user on each page, as well as how many trips (pages) to the server you can tolerate. So the problem is:
![]()
How do I create a multi-page form that minimizes both scrolling and the number of round-trips to the server?
![]()
Place all the HTML code for the form on a single page, with each page wrapped in a
Solving the Multi-page Form Problem
The solution to the multi-page form problem is deceptively simple. The sample code (see Resources) for this solution sets up some default display conditions for the user to see when the page loads, then provides chunks of a lengthy form in bites that users can digest. At the bottom of each form chunk, a button provides navigation to the next chunk of the form. For all but the first chunk an additional button allows the user to back up. The trick is to wrap the chunks of the form inside
At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.
See our full editorial policy.

What Is AI-Assisted Vulnerability Research? Chrome 158’s Claude-Found Bugs Explained

The Cheapest Ways to Run an AI Agent 24/7 in 2027 (Ranked)

What Is Java4Shell? The Critical OpenJDK Base64 Vulnerability Explained

What Is the Agent-Framework PyPI Attack? Microsoft’s Credential Stealer Explained

One Design System for the Product and the Marketing Site, or Two?

What Is NGINX2Root? The Critical NGINX RCE Vulnerabilities Explained

How Fintech Is Transforming the Way Consumers Manage Monthly Bills

What Is .NET 11? C# 15 Union Types and AI Tooling Explained

How the Modern Online Video Editor Is Reshaping Business Productivity and Marketing

Just-in-Time Privileged Access Should Be Scoped to Tasks, Not People

What Is Windows 11’s Coding Agent Telemetry? Privacy Risk Explained

What Is the cPGuard Supply Chain Attack? OpsShield’s Backdoor Explained

What Is wfx-loot? The GitHub Actions Secret Stealer Attack Explained

What Is Gemini 4 Hydrogen? Google’s Fast, Low-Cost Coding Model Explained

What Is GPT-6 Cyber? OpenAI’s New Cybersecurity AI Model Explained

What Is Microsoft’s November 2026 Patch Tuesday? Outlook Zero-Day Explained

What Is Claude Fable 5.2? Anthropic’s New Flagship Model Explained

What Is DeepSeek Super-Agent? DeepSeek’s Open Source Coding Agent Explained

What Is the Meta Conductor Acquisition? AI Coding Agents Explained

Exploring How Service Robots Navigate Everyday Unpredictability with LiDAR

What Is the Cloudflare Deno Acquisition? Explained

What Is FlashProve? Anthropic’s New Way to Verify AI Model Identity

What Is Recursive Self-Improvement in AI? Anthropic’s Warning Explained

Domestic Intelligence: What Lütke, Musk And Panin Know That You Don’t?
