Re: javascript and php
No. The JavaScript file is interpreted on the client side. Therefore the PHP, being server-side, cannot read it.
If you need to access the variable using JavaScript, here is a function I just made up that should help you.
Code:
function retrieveURLVariable(name){
var vURL = window.location.search.substr(1);
var vParts = vURL.split(name + "=");
vParts = vParts[1].split('&');
return vParts[0];
}
var test = retrieveURLVariable('abc');
alert(test);
If the post was helpful...Rate it! Remember to use [code] or [php] tags.