On Tue, 2010-04-13 at 15:20 +0200, Merlin Morgenstern 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?
> 
> Thank you for any hint,
> 
> Merlin
> 


Session data is all stored on the server, so it requires a submit in
order for the server to actually get the data.

You could use Ajax to grab the form data and send it to the server if
you need though.

However, I'm not really sure what your question is. Are people visiting
your site, filling in a form, then pressing the back button to go
somewhere else? If so, maybe they intended to not submit the form.

Thanks,
Ash
http://www.ashleysheridan.co.uk


Reply via email to