I've tried using htmlspecialchars() as below but it doesn't work. I'm using incorrectly somehow eh!
Thanks for your help in advance.
RP.
Code: Select all
foreach($connectData as $key => $value) {
if($key==Name_ID) continue;
printf("<tr>\n");
printf("<td>\n");
printf("<label for=%s>%s</label>\n",strtolower($key), $key);
printf("<input type=text name=%s id=%s value=%s>\n", strtolower($key), strtolower($key), htmlspecialchars($value));
printf("<td>\n");
printf("<tr>\n");
}