Im trying to find a solution to add multiple values in my database using the same name of textboxes but I cant. I dont know exactly if there is and solution Please see the below code.
<form action="" method="post">
<?php
if(isset($_POST['pats'])){
$pats = $_POST['pats'];
mysql_query("INSERT INTO trainings(pats) VALUES ('$pats')") or die(mysql_error());
}
?>
<input type="text" name="pats" placeholder="Pats">
<input type="text" name="pats" placeholder="Pats">
<input type="text" name="pats" placeholder="Pats">
<input type="text" name="pats" placeholder="Pats">
<input type="text" name="pats" placeholder="Pats">
<input type="submit" name="insert" value="Add">
</form>