I have 3 tables in my database tbl1, tbl2 and tbl3.
My HTML form
<form action="" method="post">
<input type="text" class="form-control" id="department" name="department" placeholder="Enter Name" required>
<input type="text" class="form-control" id="cost" name="cost" placeholder="Enter Name" required>
<select class="custom-select" name="roles" id="inputGroupSelect01 status">
<option selected>Choose...</option>
<option value="Available">Available</option>
<option value="Repair">Repair</option>
<option value="Checked Out">Checked Out</option>
</select>
ADD USER
My question is if the user chose Available then the entire form data should go to tbl1, if the value is disposed then tbl2, if its checked out then tbl3.
How can i do it?