How to deal with PHP?

put OpenServer. Everything works if the html file be renamed to php and open it through the menu OpenServer.

everything seems OK.

Created the form(the html file with the form ...
Inside input with type submit and input with the text type.

Well, in the same directory created processorder.php pointed form.

The problem is that when the request is opened processorder.php through the browser and not through a server and, accordingly, opens it in the form of just html code and not as the page with the order
is this normal?

<form action="processorder.php" method="post">
 <table border="0">
 <tbody><tr bgcolor="#cccccc">
 <td width="150">Item of goods</td>
 <td width="15">Qty</td>
</tr>
the <tr>
<td>Tires</td>
 <td align="center"><input type="text" name="tireqty" size="3" maxlength="3"></td>
</tr>
the <tr>
<td>Oil</td>
 <td align="center"><input type="text" name="oilqty" size="3" maxlength="3"></td>
</tr>
the <tr>
<td>Sparcks</td>
 <td align="center"><input type="text" name="sparckqty" size="3" maxlength="3"></td>
</tr>
the <tr>
 <td colspan="2" align="center"><input type="submit" value="Order"></td>
</tr>
</tbody></table>
</form>


processorder.php:





 <h1>auto Parts from Vovan</h1>
 <h2>order Results</h2>
 <?php 

 echo "<p-->Order processed.";

?>


July 4th 19 at 22:50
1 answer
July 4th 19 at 22:52
through the browser and not through the server

What does it mean? As through the server?
When you send the form, you are redirected to the address specified in the action form.
So everything is working properly.
and, accordingly, opens it in the form of just html code and not as the page with the order

To go to the page, any, specify processorder.php redirect to this page.

Find more questions by tags PHP