$gpscaption = Get(This_Image,"cap") ;
$gpsurl='<a href=\'http://maps.google.co.uk/?q='.$psposition.'
('.$gpscaption.') &z=13 &t=h &output=embed\'>geotag</a>' ;
which has produced
<a href='http://maps.google.co.uk/?q=13.2675037333011 -59.5940297600167
(A caption's apostrophe) &z=13 &t=h &output=embed'>geotag</a>
As you can see, the test caption has an apostrophe. That causes problems
with the url. My first though was to change the enclosing ' around the
url to " but other characters such as ampersand would cause problems as
well.
My second thought is to use some sort of translation utility to change the
whole of the caption to ' notation. Any sucggestions for this.
Any other thoughts would be appreciated.
If it makes it clearer to see what I'm doing, there's a link called
geotag at the bottom right above the line
http://www.clifford.org.uk/recentphotos/EastAfrica.July/tn/dsc_3521.jpg.index.html
Click on it.
--
Alan