May 20, 2013

Storing cookies for future form submissions

Yosef Naser’s Question:

Is there any way to store data submitted in cookies and when the same form is loaded again the text fields are filled with the stored values in cookies ?

I have a shopping website and i don’t wanna require customers to register, so when they order an item and come back again to order another item the form is prefilled with their information.

I’ve looked around but no one seems to mention such thing.

You can use $_COOKIE[] to access and retrieve information stored in cookie.

Author: Nabin Nepal (Starx)

Hello, I am Nabin Nepal and you can call me Starx. This is my blog where write about my life and my involvements. I am a Software Developer, A Cyclist and a Realist. I hope you will find my blog interesting. Follow me on Google+

...

Please fill the form - I will response as fast as I can!