We are trying to call a PHP script with JavaScript and also pass a variable 'W' that is a string that needs to be parsed in PHP. We are using an image to call the script...
<IMG BORDER = "0" WIDTH = "1" HEIGHT = "1" SRC="http://server.com/.../serverparse.php?W">
We are not sure how to pass the variable 'W' to the PHP to be parsed.
You should parse the $W variable before, like such...
<IMG BORDER="0" WIDTH="1" HEIGHT="1" SRC="<?php echo "http://server.com/.../serverparse.php?"."$W" ?>">
when the page is called by the client PHP will put in the $W variable
hope that helps,