Hello,
This is my form:
<form name="form" action="..."><div style="border:1px solid grey;">
<b>Song Name'.$i.':</b> <input type="text" name="song[]">
Link 1: <input type="text" name="link1[]"><br>
Link2: <input type="text" name="link2[]"><br>
Link3: <input type="text" name="link3[]"><br>
</div>
</form>
This is my code:
foreach($_POST['song'] as $item1){
//INSERT CODE for songname,link1,link2 and link3
}
My for each loop is only optimized for inserting the song name. I want to get the value of the song,link1,2,3 and insert them at the same time. How can i do it?