When I click my "Submit" button my .php comes up but all the code is included. See code below. I'm completely new to PHP so excuse the ignorant question. Thank you.

<%@LANGUAGE="JAVASCRIPT" CODEPAGE="65001"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Contact Submission</title>
</head>

<body>
Thanks your for submitting your comments. We will get back to you shortly.
</body>
</html>

Your code above doesn't contain any PHP code. The opening line has ASP-type tags (<% %>) but also says language=javascript so I'm suspecting that you didn't define something correctly (but it's just a guess). The rest of the code is just basic html so if it is run it a browser (without the first line) it should work (whether the suffix is .htm, .html or .php).

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.