can i store a cookie value set from javascript into a php variable?

user3121403

I stored a javascript value into a cookie, as shown below.

var headvalue = "blue";

localStorage.setItem('headvalue', headvalue );

It it possible to get this headvalue variable from the cookie and store it into a php variable $headvalue? if yes how?

Sirago

What are you trying to do? I suppose you could do that with AJAX by calling a PHP page with GET/POST, submitting your variable and storing it, but it isn't going to do you much good after that script has completed executing, unless you stored it as a session variable.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Set input field value in Javascript value store in PHP variable

From Dev

Need to pass the value of the variable php to javascript but I can not

From Dev

PHP - How can I store variable states?

From Dev

How can I pass the value coming from a jQuery variable to PHP?

From Dev

Can I set a variable to a variable combination in javascript?

From Dev

How can I store value in the array on the JavaScript?

From Dev

Can PHP set cookie function, Overwrite cookie value created with JQuery cookie

From Dev

Store value of php array variable to javascript array variable

From Dev

Store value in a variable with Javascript

From Dev

How can I set the value of a variable?

From Dev

how do i get src and value of picture from html, and store it into a php variable?

From Dev

javascript set cookie with language value

From Dev

Can I trigger a jQuery set cookie from a forwarded domain?

From Dev

PHP: Can't Set Cookie

From Dev

How to store a variable inside a JavaScript session cookie?

From Dev

I can only make a cookie have one value in javascript

From Dev

I can only make a cookie have one value in javascript

From Dev

PHP: Reading a cookie set with Javascript

From Dev

Can i set value in multiple input in PHP?

From Dev

Can't retrieve cookie value in php for cookie set using asp.net

From Dev

How can I store the value a user enters in a variable?

From Dev

How can I store the value of a MySqlCommand in C# to a local variable?

From Dev

What is largest value (number) that I can store in an Excel VBA variable?

From Dev

How do i store select value into a php variable

From Dev

How do I store the value of a javascript variable (without a server) externally?

From Dev

Using jquery.cookie plugin to set variable value from html and read that value from an external script

From Dev

how can i get a value of a variable from one php file to another php file

From Dev

How can I set a BIT variable based on a value variable?

From Dev

How can store javascript variable to php session variables?

Related Related

  1. 1

    Set input field value in Javascript value store in PHP variable

  2. 2

    Need to pass the value of the variable php to javascript but I can not

  3. 3

    PHP - How can I store variable states?

  4. 4

    How can I pass the value coming from a jQuery variable to PHP?

  5. 5

    Can I set a variable to a variable combination in javascript?

  6. 6

    How can I store value in the array on the JavaScript?

  7. 7

    Can PHP set cookie function, Overwrite cookie value created with JQuery cookie

  8. 8

    Store value of php array variable to javascript array variable

  9. 9

    Store value in a variable with Javascript

  10. 10

    How can I set the value of a variable?

  11. 11

    how do i get src and value of picture from html, and store it into a php variable?

  12. 12

    javascript set cookie with language value

  13. 13

    Can I trigger a jQuery set cookie from a forwarded domain?

  14. 14

    PHP: Can't Set Cookie

  15. 15

    How to store a variable inside a JavaScript session cookie?

  16. 16

    I can only make a cookie have one value in javascript

  17. 17

    I can only make a cookie have one value in javascript

  18. 18

    PHP: Reading a cookie set with Javascript

  19. 19

    Can i set value in multiple input in PHP?

  20. 20

    Can't retrieve cookie value in php for cookie set using asp.net

  21. 21

    How can I store the value a user enters in a variable?

  22. 22

    How can I store the value of a MySqlCommand in C# to a local variable?

  23. 23

    What is largest value (number) that I can store in an Excel VBA variable?

  24. 24

    How do i store select value into a php variable

  25. 25

    How do I store the value of a javascript variable (without a server) externally?

  26. 26

    Using jquery.cookie plugin to set variable value from html and read that value from an external script

  27. 27

    how can i get a value of a variable from one php file to another php file

  28. 28

    How can I set a BIT variable based on a value variable?

  29. 29

    How can store javascript variable to php session variables?

HotTag

Archive