Prova così

$data = $_POST['field1'] . '-' . $_POST['field2'] . PHP_EOL;