When I submit html form to php, it displays my code instead of executing it. I'm using XAMPP server. I have Apache and MySQL turned on. I tried reinstalling XAMPP, but it does not help. Here's what browser displays: browser screen
And here's my html code:
<html>
<head>
<title>Dodawanie danych do tabeli uczen</title>
<link rel="stylesheet" href="plik.css">
</head>
<body>
<div class="box">
<h2>Dodaj pracownika:</h2>
<form action="dodaj.php" method="post">
Nr oddziału: <input class="pole" type="text" name="numer_oddzialu"><br>
Nazwa oddziału: <input type="text" name="nazwa_oddzialu"><br>
Miejscowość: <input type="text" name="miejscowosc_oddzialu"><br>
Adres: <input type="text" name="adresc_oddzialu"><br>
Pesel: <input type="int" name="pesel"><br>
Imię: <input type="text" name="imie"><br>
Nazwisko: <input type="text" name="nazwisko"><br>
Stanowisko: <input type="text" name="stanowisko"><br>
Wynagrodzenie: <input type="int" name="wynagrodzenie"><br>
<input type="submit" value="wyslij">
</form>
<a href="baza.php">Wyswietl wszystkich</a>
</div>
</body>
</html>
Please help!!!