This is my code
<form name="#" method="POST" action="#">
<input type="text" id="id" name="tid" />
<input type="text" id="name" name="name" />
<input type="text" id="addnumber" name="addnumber">
<input type="submit" name="submit1" id="submit1" value="Save Infomation" style="width: 300px; margin: 0 auto;">
</form>
This is Php my code
if(isset($_POST['submit1'])) {
$Id=$_POST['id'];
$Name=$_POST['name'];
$Numbers=$_POST['addnumber'];
if in$_POST['addnumber']
user enter 30 then i want to create 30 rows in databse table
$insert = mysqli_query($con,"INSERT INTO tablename
(Id,Name,Number)
VALUES('".$Id."','".$Name."','".$Numbers."')");
echo "<h1> Infomation Saved</h1>";
}
?>