I am quite new as web developer, I find myself trying to resolve a problem.
I would like to pass a value JavaScript to PHP without using any form method.
Her
You can pass the variables using form. There is no other way to pass the php variables other than forms.