2010-06-05, 18:25:25
I think a better way to record the data, is as follows:
Is it more compatible with special characters, of this way?, or how should this be?
Regards.
Code:
function saveTagValues(){
global $tags;
global $note;
global $xml;
while (list($key, $val) = each($tags)) {
if(isset($_POST['post-'.strtolower($key)])) {
$note = $xml->addChild(strtolower($key));
$note->addCData(htmlentities($_POST['post-'.strtolower($key)], ENT_QUOTES, 'UTF-8'));
}
}
}
Is it more compatible with special characters, of this way?, or how should this be?
Regards.