I want to send a variable created by a javascript to a php-page. can anyone explain me how to attach the variable to the link so that it is transported ? thanks in advance rol
Maybe Something Like:
<script>
function MyFunction() { //JavaScript var myVar = 1 + 1;
//To Attach the var window.location = "phpfile.php?var=" + myVar;
}
</script>
so what about attaching two or more variables then ?
Do:
function MyFunction() { //JavaScript var myVar = 1 + 1; var myVar2 = "Doh";
//To Attach the vars window.location = "phpfile.php?var=" + myVar + "&myVar2=" + myVar2;
And how do i make the phpfile catch up the vars so i can operate with them ?