how can i insert data into a database so i can edit it using a form.. so that nl2br is displayed correctly??
I now use the code pasted below.. but if i edit a var and put it back into mysql using a form, it 'doubles' the <br>'s..
so it should create <br>'s for newlines.. but not add a <br> where it is inserted already..
Ideas ??
Thanxx
ZiLL
if (get_magic_quotes_gpc()==1 and is_array($GLOBALS)==1) {
while(list($key,$val)=each($GLOBALS)) {
if (is_string($val)==1) {
$GLOBALS[$key]=stripslashes($val);
$GLOBALS[$key]=htmlspecialchars($val);
$GLOBALS[$key]=nl2br($val);
}
}
}