I am using AJAX live search to generate user-profile-specific links. It works well, I always end up at the profile I want to, but there ist an issue.
Let\'s do this for
The problem you are getting arises from the fact that your code adds spaces and a plus sign to the resulting link. And spaces are automatically encoded as %20
. The solution would be to remove them from the code like this:
$hint= "" .
$y->item(0)->childNodes->item(0)->nodeValue . " (profile)";
This change would need to be done in all four occurences.