473,385 Members | 1,372 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Continue filling a form from where you ended

1
I would like to enable users to start form where they ended in case one was filling an application form online and some problem occurred so he didn't finish.How can i archive it either using php, javascript or jquery?
Forexample, if he had just finished filling only two pages of 5.
May 29 '13 #1
2 1648
Rabbit
12,516 Expert Mod 8TB
You can use either javascript or jquery to store what they filled out in cookies.

On a side note, jquery is javascript. It's a library built on javascript.
May 29 '13 #2
Oralloy
988 Expert 512MB
faure,

What degree of granularity are you trying to achieve?
  1. Page level, individual field changes are not tracked.
  2. Field level - changes are tracked when a value change is complete.
  3. Keystroke level - field change details are tracked as the user them

For #1, you can simply database each page's changes when the user transmits the page. Not only are values stored, but the name of the last form displayed, as well. To recover, simply post the "last form" with the most recent values that are stored in the database.

For #2, you will want to use jQuery (or bare JavaScript) to make an AJAX connection to a REST service that you use to track each field change. The data you send are 1) the name of the changed field, 2) the new value, 3) the field that the user just entered, and 4) the form that the user just entered. Recovery is similar to #1, however you need to dynamically create a bit of JavaScript that sets the focus (cursor position) correctly.

For #3, you do everything as in #2, but you have to track on each detail change and the cursor position (for instance, the user is editing in the middle of a text box). Likewise, recovery is nearly identical, however you need to position the cursor down to the character level, on a specific check-box, or wherever.

As a first cut, I would recommend that you implement #1, as it requires no additional JavaScript or construction of a REST interface. This solution can be completely contained within your PHP, which makes maintenence straightforward for anyone helping you. The complexity will come in that each PHP page will now have (potentially) complex data-storage and recovery blocks of code.

IMHO, level #2, field level tracking, is the most elegant solution from an end-customer (user) perspective. You have to implement change tracking on all fields, but this is relatively straightforward using jQuery. Elegance comes at a cost, however - you will have to craft the REST interface for change tracking. Also, your PHP code will have to have recovery blocks inserted, as in #1.

IMO, Level #3 is more of academic interest than a practical methodology - simply because most users are not going to be able to recover their train of thought at the middle of a value change. The only time that I might consider this level of change tracking is if you had a web site like ours (Bytes), where people spend significant amounts of time writing original work. Even then, I would suggest using a temporal (time-based) tracking strategy, rather than tracking keystrokes.

Good Luck!
Oralloy
May 29 '13 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Jensen bredal | last post by:
Hello, I need to write different kind of forms that the customer can use to enter data and save the data into database. (The data access will be hand coded) My problem is that the form may vary...
12
by: andreas | last post by:
Hi, A button in a child form creates another form with a textbox showing with show. I set the taborder on first on this textbox in the design and set even the focus by loading but i see no...
1
by: Geekware Digital | last post by:
Hi there.I have a table with 5 fields for a tour business activity list : (1) id -table key (2) name (3)description (4)picture -text link not binary(5) country. I would like to create a form that...
1
by: JHite | last post by:
I am using Access 2003. My Form has 4 fields: MailingListID, auto generated – primary key LastName FirstName NickName I used the Combo box wizard to set up look-up box on the form. I answered...
1
by: Marcolino | last post by:
Hi, I'm new with VB.net and I comming from VB6 programming. I need to open a little form in Modal and child of MDI, with the top- left corner where the mouse has clicked. I tryed this code but...
3
by: zepdad | last post by:
I'm new to forum and am learning javascript. I appreciate your help and patience in advance. I run an image gallery website that uses an onload event called FitPic() to scale image and window sizes...
5
by: jmarcrum | last post by:
Hi everyone! I have a form that has two command buttons (Add, and Edit). If the user clicks Add, another form pops up asking for a username and password. If the user enters the username and...
10
reginaldmerritt
by: reginaldmerritt | last post by:
I'm trying to open a form where the value of a field has a date closest to today but not beyond todays date. I guess i need some sort of MAX function in a where statment maybe???? Any ideas how...
3
by: birdbite | last post by:
Hello, this is my first post. Thanks for reading. I am trying to open a form on a Click event where the records displayed are what the user has selected on several form combo boxes. Some of the...
1
Daniel B
by: Daniel B | last post by:
I have tried creating a subform where all the data from the tables is present, therefore the user will have to enter information for a new record into each field. This did not allow me to enter data...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.