Answer the question
In order to leave comments, you need to log in
How to write value from cookie to dynamic form?
Good day everyone. There is a dynamic form in php , Region ==> City, there are also region and city key pairs recorded in coockie
{"city":{"id":7779062,"name_ru":"\u0423\u0441\u0441\u0443\u0440\u0438\u0439\u0441\u043a","name_en":""
},
"region":{"id":"226","name_ru":"\u041f\u0440\u0438\u043c\u043e\u0440\u0441\u043a\u0438\u0439 \u043a
\u0440\u0430\u0439","name_en":""}}
Answer the question
In order to leave comments, you need to log in
From cookies? The page is not loaded from cookies, it can be generated with cookies!
PHP: use $_COOKIE cookie variable when serving a page.
JS: document.cookie variable
Or do you need a hint on how exactly to insert this information into the object?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question