Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 417805
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T18:36:59+00:00 2026-05-12T18:36:59+00:00

Whenever I’m to prepare a long form for the client I always want to

  • 0

Whenever I’m to prepare a long form for the client I always want to split it into separate pages, so the visitor doesn’t have to fill it all, but does it in steps.

Something like:

Step 1  >  Step 2  > Step 3 > Thank You!

I’ve never done it for one reason: I don’t know how to store the data from separate steps efficiently? By efficiently I mean, how to store it, so when a visitor decides not to finish it at Step 3 all the data is deleted.

I’ve come up with few ways of how this could be resolved, but I’m just not convinced by any of them:

  1. Storing form data in database
    I can imagine a table with columns representing each question, with final column representing a bool value whether the form has been completed or not?
    But I would have to do a clean-up of the table every now and then (maybe even every time it gets updated with new data?) and delete all entries with complete = 0.

  2. Store form data in session data.
    This on the other hand, does not have to store data in database (depending on how sessions are being handled) and all info would be in Cookie. But what if browser doesn’t support cookies or user disabled them (rare, but happens), or if form has file attachments, then this is a no-go.

  3. echo‘ing form data from previous page as <input type="hidden"> on the next page
    Yes, I’m aware this is a rather stupid idea, but it’s an alternative. Poor, but it is.

Option 1 seems to be the best, but I feel it’s unnecessary to store temporary data in DB. And what if this becomes a very popular form, with a lot of visitors filling it in? The amount of Updates/Deletes could be massive?

I want to know how you deal with it.


Edit

David asked a good question. What technology I’m using?
I personally use PHP+MySQL, but I feel like it’s more generic question. Please share your solutions no matter of what server-side technology you use, as I’m sure the concept can be adapted one way or the other to different technologies.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T18:36:59+00:00Added an answer on May 12, 2026 at 6:36 pm

    I think the choice between options 1 and 2 comes down to how much data you are storing. I think in most cases the amount of data you are collecting on a form is going to be fairly small (a few kilobytes). In that case, I think storing it in the session data is the way to go. There’s not that much overhead in passing that amount of data back and forth. Also, unless your users are on computers where there is a strict security policy in place, the application should work. If you make the page requirements clear users can decide if they want to proceed or not.

    If you are storing large amounts of data for the form then a database would be better so you don’t need to pass the data back and forth. However, I think this is going to be a fairly rare situation. Even if the application allows the uploading of files you can save those to a temporary location and only write them to the database once the form is completed. The other situation where you might want to use a database is if your form needs to be able to support the user leaving and coming back at a later time to resume the form.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Whenever I want to use any resource element in the non-root package, I have
Whenever I attempt to create a wallpost that doesn't have the caption set it
Whenever I try and make any Twitter request, my application always hangs. This does
Whenever I place a marker in Google Map using Google API. I want to
Whenever I am putting my application into background, or calling a chooser task, the
Whenever I design a database, I always wonder if there is a best way
Whenever I create an html page I have to replace all the special characters
Whenever we start a new iteration I have to set the default value for
Whenever I have to work with topics like file-handling or socket-programming, I have to
Whenever I work with arrays, I always use the [] style, however, when I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.