Jump to content

Complete all or none


squiblo

Recommended Posts

Hi guys, I'm working on a project that handles a lot of inserts into a database and uploads files to FTP. Lets say this is the order:

 

- Step 1: Insert row into database

- Step 2: Upload files to FTP

- Step 3: Email user to confirm complete

 

If the user closes the browser soon after Step 1 has complete Step 2 and 3 will not run.

 

I would prefer if all 3 steps were complete or none at all. What can I do?

 

Thanks in advance.

Link to comment
Share on other sites

Hmmm, I'm thinking you can keep track of each step completed. Maybe insert a row into a table that keeps track everytime a user starts step 1. if he/she closes out after it, when they log back in next you can display a message like "Finish uploading files" or whatever it is you want them to do. Then take them to a page where they can do step 2. Once step 2 is completed, update same record in database saying it's completed. Same with step 3. Once all steps are completed, either make note of that in record or simply delete it.

Link to comment
Share on other sites

  • 2 weeks later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.