I guess you're hitting errors when you try to save to a database. When creating your insert string try this
$sql = "insert into mytable (id, subject, notes) values "
. "( NULL, '" . addslashes($subject). "', '" . addslashes( $notes) . "')";
then when you retrieve you need to use stripslashes()