Should you have urlencode() inside htmlentities() or outside it in PHP ?
About Query Strings in URL. Can the first part be inside htmlentities() or only last part ? M