I am new to php and I am currently creating a form which sends data to a local mySQL server. I have a database which stores the users first name, last name, email and address. So the form takes the data and stores it in the database. I'm stuck because I get an error 'Notice: Undefined index: id'
This is where i'm stuck:
<div class="text-center">
<form class="form-inline" action="tables.php" method="post">
<div class="form-group">
<label for="first name">Add user:</label>
<input type="text" name="user" id="first name" class="form-control" value="<?=$_POST['id'];?>">
<div>
</form>
</div>