Looks like you probably dont have php shortcodes enabled so that php code that begins with “<?” is not recognised and therefore the code not executed. For example <? Echo $fname; ?>…
In your php.ini file on your server, search for and then make sure the following line is set as follows, then restart your web server software:
short_open_tag=On
That should fix it.
Cheers,
Ken