Your web server will server the HTML page as is. It will only parse the HTML as best as it can. If you rename your page with a PHP extension, the web server will parse it using the PHP interpreter and that is when PHP will be interpreted. Also as Fred points out in the comments you can tell Apache to treat HTML as PHP.
Related Posts:
- navigate back with PHP form submission
- PHP $_POST not working?
- POST an array from an HTML form without javascript
- xajax expanding list query
- Why use $_SERVER[‘PHP_SELF’] instead of “”
- Email Not Sending from Byethost Hosting
- Send email with PHP from html form on submit with the same script
- laravel updateOrCreate method
- HTML Element Array, name=”something[]” or name=”something”?
- Why use $_SERVER[‘PHP_SELF’] instead of “”
- what does a .php?id=&value=value means?
- Creating a search form in PHP to search a database?
- How do you parse and process HTML/XML in PHP?
- What is the difference between the ‘www’ folder and ‘htdocs’ folder?
- How to read if a checkbox is checked in PHP?
- PHP mail function doesn’t complete sending of e-mail
- The character encoding of the HTML document was not declared
- What is wrong in chrome “net : Failed to load resource: net::ERR_SPDY_PROTOCOL_ERROR”?
- Notice: Undefined offset: 0 in
- How to run a PHP function from an HTML form?
- Do I need a !DOCTYPE declaration in a php file with html?
- Generate PDF from HTML PHP
- add_filter the_content str_replace after shortcode
- Upload Image in a WordPress page using PHP
- How to trigger $_GET request within admin plugin page?
- My form action url is being prepended with a directory that does not exists
- How to store data from multiple forms using ajax and php
- Why Won’t My Inputs in a form with a Get method work together?
- Input data from email form not going to JSON file
- How to get the value of input hidden html from text editor to custom page template?
- How to insert HTML/JavaScript form into WordPress page? [closed]
- Login to wordpress by clicking a link and specifying usernaname and password in url
- Search WordPress using static html page
- How to execute html code inside php?
- How to add post meta in while loop?
- File Uploader – Upload without adding to Media Library
- Adding attribute to the post.php form tag in wp-admin
- WordPressUser Submission Form
- Custom forms with HTML
- Cascading dropdown select search based on Parent Page & Child Page
- HTML Form Question
- Why is my form going to frontend on html form submission present on the php files inside my custom plugin?
- wordpress form action page not found
- Custom HTML form using PHP – help with ajax/username validation
- Fatal error: Call to undefined function mysqli_connect()
- Forbidden :You don’t have permission to access /phpmyadmin on this server
- PHP mail not working for some reason
- Get Root Directory Path of a PHP project
- Returning JSON from PHP to JavaScript?
- Object of class DateTime could not be converted to string
- HTTP Error 411, The request must be chunked or have a content length
- mysqli::query(): Couldn’t fetch mysqli
- Fatal error: Call to undefined function sqlsrv_connect()
- PHP cURL HTTP PUT
- Convert timestamp to readable date/time PHP
- PHP sessions that have already been started
- Contact Form 7 – Custom Validation
- How to output JavaScript with PHP
- WRONGTYPE Operation against a key holding the wrong kind of value php
- What is the advantage of using try {} catch {} versus if {} else {}
- Strict Standards: Only variables should be assigned by reference PHP 5.4
- mysqlworkbench giving version error on exporting database
- Steam Market API?
- PHP array delete by value (not key)
- PHP mail: Multiple recipients?
- Having a problem getting mysqli_query to execute
- HTML vs SHTML vs PHTML
- Find the last element of an array while using a foreach loop in PHP
- Popup window in PHP?
- How can you use php in a javascript function
- How to bypass (deprecated) reCAPTCHA V1?
- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ””)’ at line 2
- how to set featured image in non-wordpress
- Why do templates contain so many PHP tag pairs?
- Has anyone tried putting PHP ActiveRecord on WordPress?
- Handling error states with admin_post
- Multi step form, custom plugin
- submit the form to same page
- Placing raw HTML inside a WordPress shortcode
- An unwanted inline style is added to my body tag
- How can I get WordPress to save comments in markdown format?
- Transferring working local PHP site to wordpress – with database (MySQL)
- “operation successful” message
- How to Loop Through all Posts and Count Attachments using Get Media Attachments
- the_content() printing DOCTYPE, and tags in the middle of page
- Pass important values server-side when processing form
- WP Website is shown in HTML
- How to Protect a private folder inside uploads folder, if User is not Logged In?
- How to make a parent page for author.php?
- Multisite – Display different header content based on which site is accessed
- html to posts, jpg to featured image, zip file contains jpg and html
- Where to find the html for WordPress site? [closed]
- Dealing with html forms [closed]
- How Can I Center the Logo in the Navigation Menu? [closed]
- Using Nonce for my Form
- How to pass username into form that sends data to database
- HTML in PHP problem [closed]
- how to show selected options drop down menu values in attributes field in after saving post.php
- How to modify default tags in wp_head()
- Can’t insert into a database wordpress