3
Dave_L : thanks for your help !
I've tried the folowing :
$newname = str_replace("'", ''', $name);
$sform -> addElement( new XoopsFormText( _AM_XH_COLNAME, 'name', 50, 255, $newname), true );
$newname = str_replace("'", "'", $name);
$sform -> addElement( new XoopsFormText( _AM_XH_COLNAME, 'name', 50, 255, $newname), true );
$newname = str_replace("'", "''", $name);
$sform -> addElement( new XoopsFormText( _AM_XH_COLNAME, 'name', 50, 255, $newname), true );
$newname = str_replace("'", "'''", $name);
$sform -> addElement( new XoopsFormText( _AM_XH_COLNAME, 'name', 50, 255, $newname), true );
All without any success. Do you have another idea ?
Thanks for your help !