i have 5 textboxes with the name of textbox1,textbox2 ... textbox5. now what i want is that instead of putting each of their value in a variable individually I want to do it in a loop, i have my code here but after i enter submit errors like
Array to string conversion in ...
and
Undefined index: textboxArray in...
.please see what's wrong with my code.
if(isset($_POST['submit'])){
for($i=0; $i<5; $i++){
$sasa = $_POST["textbox".[$i].""];
$sql="INSERT into sasa (sasa) values('$sasa')";
$q=$conn->query($sql);
}
}