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.
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.
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:
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