I've got a web form and when the user submits it I save those fields in cookies. All of that works OK, but when a user wants to type in something different into that field the next time they use the form I want to save the new value into that existing cookie.
This is my script that runs when the user submits the form:
setcookie("Bill_to", $Bill_to, time()+7776000, "/", ".domain.com");
setcookie("Bill_Address", $Bill_Address, time()+7776000, "/", ".domain.com");
setcookie("Contact", $Contact, time()+7776000, "/", ".domain.com");
setcookie("Email", $Email, time()+7776000, "/", ".domain.com");
setcookie("Contact_Phone", str_replace("-", "", $Contact_Phone), time()+7776000, "/", ".domain.com");
Any reason why the cookie values don't get replaced each time the form is submitted?
Thanks for any help you can give.
Jonzy