that example is very incomplete. and what would "dont work" mean for anybody who can't read your mind? a simple post to any file would not generate any output, so how did you check the improper functioning? at least your PHP code is doing exactly nothing.

that example is very incomplete. and what would "dont work" mean for anybody who can't read your mind? a simple post to any file would not generate any output, so how did you check the improper functioning? at least your PHP code is doing exactly nothing.

But that's exactly what I need to know.
What is missing for this code to work?
I am looking for a code that converts a var from js to php.
Nothing works and I do not know what's wrong.
That's why I came here.
Thank you if you can help me.