Fixed removal of empty fields, ported "copy-to-sender" funcionality from form.php