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 need to send a request which hold your data you can use AJAX as mentioned in comment.
Here JQuery ajax example :
$.ajax({ url: "test.html", context: document.body }).done(function() { // Available informations });