DaveyRichards
Programmer
Hey all.
Am having a problem with my cookie. I have a drop down menu whereby on submission the selected value is stored within a cookie. My problem is that I am trying to display the value of this cookie on the page that has been submitted to, but it seems the cookie is not being set until after the page has loaded and therefore I am receiving the previous value of the cookie as opposed to the value recently submitted.
Refreshing the page shows the correct value. I know that setting a cookie must go before the HTML and that is where I have it.
Anybody any suggestions?
Am having a problem with my cookie. I have a drop down menu whereby on submission the selected value is stored within a cookie. My problem is that I am trying to display the value of this cookie on the page that has been submitted to, but it seems the cookie is not being set until after the page has loaded and therefore I am receiving the previous value of the cookie as opposed to the value recently submitted.
Refreshing the page shows the correct value. I know that setting a cookie must go before the HTML and that is where I have it.
Anybody any suggestions?