Re: Saving form data into session before leaving a page
| From: | Peter Lind | Date: | Tue, 13 Apr 2010 13:23:08 +0000 |
| Subject: | Re: Saving form data into session before leaving a page | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-304028@lists.php.net to get a copy of this message | ||
On 13 April 2010 15:20, Merlin Morgenstern <merlin_x@fastmail.fm> wrote:
> Hello everybody,
>
> I have form where users enter data to be saved in a db.
>
> How can I make php save the form data into a session before the user leaves
> the page without pressing the submit button? Some members leave the page and
> return afterwards wondering where their already entered data is.
>
> Any ideas how to save into php session data before someone leaves the page?
Use ajax: send a query to the server a couple of seconds after the
user has last updated the form.
> Thank you for any hint,
>
> Merlin
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
<hype>
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com/in/plind
Flickr: http://www.flickr.com/photos/fake51
BeWelcome: Fake51
Couchsurfing: Fake51
</hype>