how do i pass JavaScript confirm variable to php variable

how to convert javascript variable to php variable
how to assign javascript variable to php variable
how to store javascript value in php variable
pass javascript variable to php function
post javascript variable to php
passing javascript variable to php in the same page
passing javascript variable to php using ajax
how to get javascript function return value in php variable