基本的php无法在我的浏览器中运行。 它包含html中的“$”,“;”等

I'm learning PHP coding and I can't solve this problemIt's includes the variables and the endlines.

I'm new to the language.

There is no other issue, fix your xampp problem, put your project in xampp > htdocs folder, save your file with .php extension and go to browser write http://localhost/project/page.php

Update: You are calling POST values, meaning a form (similar to a login form) has to send the values of tireqty, oilqty, and sparkqty to that page.

So you generally want to start a .php file with <?php at the very top. I would recommend doing a simple example like this:

<?php
    echo '<p>1</p>';
?>
<p>2</p>

Or, change your file to reflect .html instead. You should be able to still have the php run properly there like this:

<p>1</p>
<?php
    echo '<p>2</p>';
?>

If this doesn't work, please update your question to provide:

  1. Operating System
  2. What program you're using
  3. What browser you're using
  4. What version of PHP you're using
  5. Any other information about your system