That is not an error, it is the PHP code. does your host support serving PHP pages?
When the code is displaying in the browser, it means the server does not support processing PHP code.
You need to upload the contact form solution pack files to a host server that offers PHP support.