Possible Duplicate:
How to pass JavaScript variables to PHP?
How to get a variable that is not inside a <form>
tag
var vvv = document.getElementById('vvv');
into php
$variable=vvv.value;
Possible Duplicate:
How to pass JavaScript variables to PHP?
How to get a variable that is not inside a <form>
tag
var vvv = document.getElementById('vvv');
into php
$variable=vvv.value;
I suspect you talk about javascript to php variable. To understand how this works you will probably need to use AJAX. This is a good start: JQuery AJAX
Once you get a hold of that you can send your javascript-variable to a PHP-webservice and have fun with it.