When I compile my code inside of my browser I get the error, "
Notice: Undefined index: firstname in C:\xampp\htdocs\index.php on line 76
"
Here is the code:
<form method="post">
<div class="form-group">
<label for="name">First Name:</label>
<input type="text" name="firstname" class="form-control" placeholder="First Name"
value="<?php echo $_POST['firstname']; ?>" />
</div>
</form>
My goal with this is to save the user's data if an error occurs after they click the submit button. Any help would be appreciated. Thank you.