0

I am designing a system that collects a customer's signature once a job has been completed by an engineer at the customer's premises. Everything is working great, it is a PHP and MySQL based system and the signature is entered using a touch screen and the image is converted to JSON and saved in the database as a string.

However, there may be times when the internet connection is lost or unavailable but the signature still needs to be collected and I was wondering if there was a method that anyone knows of that can save a PHP value locally ready to be uploaded once an internet connect is re established? Perhaps using cookies?

Jimbo
  • 25,790
  • 15
  • 86
  • 131
tatty27
  • 1,553
  • 4
  • 34
  • 73
  • don't write a full question. just search with some keywords and get a look around: http://stackoverflow.com/search?q=browser+offline+storage – hakre Jun 25 '13 at 12:01

2 Answers2

0

Take a look here:

How do I create and read a value from cookie?

With cookies you can do that. But you still need to figure out how you'll check if the internet conection has gone.

Community
  • 1
  • 1
Guerra
  • 2,792
  • 1
  • 22
  • 32
0

You can save the data in local storage. Check chapter from dive into html5 about offline apps.

jcubic
  • 61,973
  • 54
  • 229
  • 402