I tried that but it causes the registration numbers to be separated by a + sign when they are decoded.
$tag ="m922 eea";
<a href=\"".$listpage."?view=$tag\">$name</a><br>\n
causes the browser to pass:-
/test?view=M922%20EEA
I have tried rawurlencode($tag) and rawurldecode($tag) with no luck.
Thanks for any help.