So, I'm trying to use a .php script to print data from a form, but everytime i try to call that script all i get is a page with the php code on it, and i can't figure out why. I don't have any errors in the code. Or at least it won't show me that i have any. Here is the code:
<DOCTYPE html>
<body>
<?php
if(isset($_POST['submit'])) 
{
    $firstName=$_POST['first'];
    
    $lastName=$_POST['last'];
    echo "Last Name: " .$lastName .$firstName . " <br />";
    $password=$_POST['pw'];
    echo "Password: " .$password . " <br />";
    $status =$_POST['status'];
    echo "Status: " .$status . "<br />";
    $waitList = $_POST['waitlist'];
    echo "Wait List: " .$waitList . "<br />";
}
?>
</body>
This is the main page code:
<!DOCTYPE html> 
<body>
<form name="register" action="process.php  " method="post" autocomplete="off" >
<p>First Name: <input type= "text" name="first" /></p>
<p>Last Name: <input type= "text" name="last" /></p>
<p>Pasword: <input type="password" name="pw"/></p>
<p>Status: 
    <input type="radio" name="status" value="enrolled" checked>Endrolled
    <input type="radio" name="status" value="notEnrolled">Not Enrolled </p>
<p><input type="checkbox" name="waitlist" value="true" checked="checked">Add me to the waiting list</p>
<p><input type="submit" name="submit" value="Sign in" /> </p>
</form> 
</body>
I really need some help with this, i am completly lost here..

 
     
     
    