Use HEREDOC rather than multiple echos

Cheers,
Louis