Page 1 of 1

is it possible to create a form that is functional offline?

Posted: Tue Oct 17, 2006 11:11 am
by KG
I've created an online survey for my company, in which data is entered by a user and submitted to a mySQL table. I've been searching for a way to make this form available offline, but so far haven't found any help.

I wonder if there may be a way to save the data or write it to a txt file, which can then later be uploaded to the database?

Posted: Tue Oct 17, 2006 11:13 am
by feyd
Generally that's not possible on the client machine as it's a security issue to store into a file. You could possibly store it into a cookie, but you're limited in the length of the cookie and quantity of cookies you may set for the site associated.

At any rate, that doesn't involve PHP, but Javascript or some other Client Side programming environment.

Posted: Wed Oct 18, 2006 11:01 am
by KG
so then it's not possible for a php program to write to a text file without being connected to the internet.. or rather it's not secure?

Posted: Wed Oct 18, 2006 11:05 am
by John Cartwright
KG wrote:so then it's not possible for a php program to write to a text file without being connected to the internet.. or rather it's not secure?
PHP resides on the server, without being able to access the server you won't be able to interact with PHP.

Posted: Wed Oct 18, 2006 11:06 am
by JayBird
You may wanna look at something like this - http://www.indigostar.com/microweb.htm

Works perfect for me.

Can run PHP/MYSQL sites off a CD, floppy, or whatever you want