Thanks for your prompt reply, as ever. I considered changing to
www.multimap.com (their aerial photo
with map overlay feature is
fascinating!). However, as the problem seems simply to be that MapQuest no
longer works properly when there is a UK street address included in the url,
I thought it better to try to stick with them if possible.

I can't use your amended script because my database isn't restricted to the
UK. However, this seems to work:

if ($yfcountry == "United Kingdom") {

$mapToFetch="city=$yfcity&state=$yfstateprov&zip=$yfpostalcode&country=$yfco
untry&level=5";

 } else {

$mapToFetch="city=$yfcity&state=$yfstateprov&address=$yfaddress&zip=$yfposta
lcode&country=$yfcountry&level=5";}

