I've just started learning php today, but after installing XAMPP i wrote my first code but it came out only as text in the browser, i have tried all i know to resolve it no solution. Please i need help, kindly guide me.
<!DOCTYPE html> <html> <head> <title>Gathering Information</title> </head> <body> <?php $studentName = $_POST['studentName']; $grade = $_POST['grade']; $section = $_POST['section']; $classTeacher = $_POST['ClassTeacher']; echo '<p>Student Informtation</p>'; echo 'Student Name is ' . $studentName; echo 'He/She is in this grade: ' . $grade; echo 'he is also in this section: ' . $studentName; echo 'Is being taught by: ' . $classTeacher; ?> </body> </html>