Possible Duplicate:
How to pass JavaScript variables to PHP?
Passing a Javascript string to PHP
I have this javascript code inside a PHP file:
<script>
function(){
var mail="comitalia@faac.it";
for(var i=0; i<json_load.length; i++){
if(json_load[i].custom.tipologo == "FAAC FILIALI"){
mail=json_load[i].custom.email;
}
}
return mail;
}
</script>
I need to return the "mail" variable to a PHP variable. How can I do that??