Newbie Javascript question

Author
Discussion

TonyRPH

Original Poster:

13,119 posts

174 months

Monday 1st August 2022
quotequote all
EDIT: Found a solution - write the variable to a cookie and read it back.

I want to use the value returned from this snippet as a PHP variable. The value returned is plain text and is a number.

This works, but I can't work out how to access the value of 'status' elsewhere in my PHP script.

How can I do this? (I can see the output in the console log as expected).

Pastebin link to code

Screenshot of code as PH won't allow any script!!!



Edited by TonyRPH on Monday 1st August 15:52