/    Sign up×
Community /Pin to ProfileBookmark

Allow user to re-use form data?

I’m not sure where this should go, as I don’t know any acceptable methods to do what I want. Please move this thread if necessary…

Basically, I have an HTML form that users enter data and then submit to a [B]Perl[/B] script for processing. This is a large form and the users dislike having to renenter the repetative bits if there is a way to avoid it.

I would like the user to be able to fill in the form. Once filled in they would click a “Save Form” button a small file would be offered for download. The file would contain the data contained on the form.

At a later time, they could open the form, click a “Load Form” button and read that file back and automatically populate the form.

Is what I want to do possible? This seems like a popular option for larger forms, or forms that will be completed often with similar data.

Currently, I have JavaScript serializing the data on the form when the user clicks the “Save Form” button, but can’t find a way to present the data as a download.

Also, using an ‘<input type=”file”>’ tag, the user can browse for their file, but all I get returned is the path to the file, but no way to get the content of that file.

to post a comment
Full-stack Developer

0Be the first to comment 😎

×

Success!

Help @Calab spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.6,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...