Ok first post for help on KML everything up to this point has been
pretty straightforward !
I want to pass two arguments to my writeKML.php script from a network
link .KML file however all my attempts to do have failed.
<NetworkLink>
<Link>
<href>
http://www...../writeKML.php?arga=A-
BCDE&argb=2008-04-16</href>
<refreshMode>onInterval</refreshMode>
<refreshInterval>300</refreshInterval>
</Link>
</NetworkLink>
When I tried the above but I got the "not well formed (invalid token)"
error message on loading the network link KML file.
URLencoding the above <href> line to....
<NetworkLink>
<Link>
<href>http%3A%2F%2Fwww.....%2FwriteKML.php%3Farga%3DA-BCDE
%26argb%3D2008-04-16</href>
<refreshMode>onInterval</refreshMode>
<refreshInterval>300</refreshInterval>
</Link>
</NetworkLink>
removes the error message and GE loads OK but I get the broken network
link icon (red dot)
If I hard code the arguments into the writeXML.php and remove the
arguments from the <href> element in the network link KML file
everything works fine.
That is ...
In writeXML.php ...
$arga = 'A-BCDE';
$argb = '2008-04-16'
In my network link KML file...
<NetworkLink>
<Link>
<href>
http://www...../writeKML.php</href>
<refreshMode>onInterval</refreshMode>
<refreshInterval>300</refreshInterval>
</Link>
</NetworkLink>
So the question is how can I pass arguments to a php script in a
network link?
I hope I have made my requirments/problems clear !!!