Hi
I'm trying to pass firstname and name from a html page to another html page (without using server code like php or asp.net) using cookies. This works partially because i get the firstname in the first input of the page action.html but also in the second input. How can i get the name in the second input in action.html?
Thanks
V.
first page:
-----------------------
action.html:
Pankajkumar PatelPosted Nov 18, 2022, 4:45 AM
Hi Valerie Meunier,
Instead of cookies you can use query string to another html-page as following way:
f1.html
f2.html
Hope, this will help you!
Deepak RawatPosted Apr 26, 2023, 2:19 PM
On the second HTML page, you can read the values of the cookies by accessing the document.cookie property:
how you can set two cookies named "cookie1" and "cookie2" with the values "value1" and "value2" respectively, and then redirect to another HTML page:
On the first HTML page: