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.