Log in

View Full Version : Autosave script



dbirk07
03-17-2015, 02:31 PM
Hello! I first want to say what an amazing resource Dynamic Drive has been over the years. It's like that really cool little hardware store in your neighborhood that has that rare and hard to find part you need, but can't fins anywhere else! I love the stuff you guys/girls do...really useful. Okay, I have never posted before, so please bear with me. I was looking for a form autosave script, and (as always) I found one here: http://www.dynamicdrive.com/dynamicindex16/autosaveform.htm

The problem is, I am using a php based form builder that I purchased from Code Canyon. I can't use your HTML-based autosave script for this, but I am looking for the EXACT same functionality. How might I allow users to save form data before clicking submit. I only want the ability for them to be able to hit "browser back" or "refresh" without losing all the data they already entered. Maybe a way of clicking to save current URL, or somehow saving a session cookie? I am a complete newbie...i can't code, but I can edit/implement almost anything...i have built dozens of sites using multiple scripts and apps...and even created some hybrids from these resources...so i am not a complete green designer...just can't code from scratch. Please help, or point me in the right direction.

I don't ahve much to offer except a thank you and a promise to someday return the favor.

D

Beverleyh
03-17-2015, 06:48 PM
Why wouldn't you be able to use the DD script that you linked to?

From the demo page;
The script only requires that your form carries an ID attribute for the FORM element itself, and either ID or NAME attributes for the fields that you wish to be auto saved
These are pretty standard form attributes and your form probably has a good chunk of them already.

Do you not have the ability to edit the HTML or link to a JavaScript file?

If you are limited in using this script then its likely that you'll be limited in using other scripts.

For more help, please provide more information and a link to your page.

dbirk07
03-18-2015, 02:39 PM
Why wouldn't you be able to use the DD script that you linked to?

From the demo page;
These are pretty standard form attributes and your form probably has a good chunk of them already.

Do you not have the ability to edit the HTML or link to a JavaScript file?

If you are limited in using this script then its likely that you'll be limited in using other scripts.

For more help, please provide more information and a link to your page.

Well, that's a good question. here is a link to my form: http://glnradio.com/forms/h264/register.php?embed=true&id=41

I contacted the creator, and he said (in regards to his script and the script here on DD)

"If you look in the "edit.php" file, line 114, that's an example of how to pass script initialization to the header and footer templates. Copy that function into the bottom of register.php and instead of "echo "forms.init()" you can do "echo "yoursaveformscriptinit()"".

This is harder to understand than speaking Arabic...and I don't know Arabic...I'm assuming lol...anyway, I looked through the files...it is a PHP form with a database, I can't find any fields to implement the tags...there are just PHP script-lets everywhere...lol, I have created forms and such in HTMl witha little PHP, but this is more advanced...I am sorry I didn't know what to include. Thank you so much for helping me!

D