I have this php code in a Wordpress page
$str = 's.aspx?sm=Q830I7SJZvuSP3HzDfFlVA%3d%3d';
printf('<a href="https://www.surveymonkey.com/.urlencode($str)." target="_blank">
<img src="http://www.anyfood.gr/net/wp-content/uploads/2014/12/evaluation2.jpg" style="padding:20px;">
</a>'
);
but the link doesn't work, I've tried several possible tricks using single quotes, etc. but I can't figure it out...Any ideas?
htmlspecialchars($str);