Not trying to sound redundant here, so read on until the end. I am just clarifying my original point.
The "$undeclared variable" you are referring to is due to your register globals being off on the NT installation. Edit the php.ini to enable it, and from then on, you won't have that issue,
In other words, using your example:
Undefined variable: somevalue in E:\home\vip\bais\wwwroot\index.php?somevalue=123
It sounds as though you are using some sort of query "SELECT * from yadda WHERE somevalue = $somevalue"
That being the case, if the global registers are off, the URL won't get parsed, and you won't be able to strip off the variable.
Above your SELECT query, add the command:
extract($HTTP_GET_VARS);
This will define your variables, and return $somevalue = 123
Then your query will understand it, and will pull everything from yadda where somevalue = 123.
If there are no variables defined, then obviously you won't get any results...
To stop the error, you will probably have to use some sort of If/Then statement to determine if the variable exists or not. In other words,
If exists($somevalue) then
run query
Else
don't run query
Although, I am not sure why you would want to run a query with user defined variables, if they don't exist anyhow...
(Obviously, I am not too concerned with perfect syntax here, since you already know what's going on here...)