Apologies if this is a real simple problem, but I'm new to this!
I am creating a form here is what I have so far:
<form action="index.php" method="POST">
<div class="header">Personal Details</div>
<input type="text" name="name" id="name" placeholder="Name">
<input type="text" name="email" id="email" placeholder="Email">
<input type="text" name="department" id="department" placeholder="Department">
<input class="btn" type="submit" value="Submit">
</form>
I then have an index.php file which currently looks like this:
<?php
echo $_POST['name'];
?>
Then when clicking 'Submit' index.php loads however it just displays as per above php code, and it doesn't spit out the name which has been input.
Any help would be much appreciated!
Kind Regards Adam