I've been staring at this for almost an hour and as a last resort I was hoping some of you guys might give me a hand figuring out this php code is showing up as regular text in my html file? All help greatly appreciated.
<?php
        $name = $_POST['name'];
        $email = $_POST['email'];
        $message = $_POST['message'];
        $from = 'From:'; 
        $to = ''; 
        $subject = 'Hello';
        $human = $_POST['human'];
        $body = "From: $name\n E-Mail: $email\n Message:\n $message";
        if ($_POST['submit'] && $human == '4') {                 
            if (mail ($to, $subject, $body, $from)) { 
            echo '<p>Your message has been sent!</p>';
        } else { 
            echo '<p>Something went wrong, go back and try again!</p>'; 
        } 
        } else if ($_POST['submit'] && $human != '4') {
        echo '<p>You answered the anti-spam question incorrectly!</p>';
        }
    ?>
 
     
     
     
    