I have some JS which allows me to add as many fields as I like to a form, which then when submitted, has to be saved in a database like this:
title[1] >> video_id[1] ||| title[2] >> video_id[2] ||| ...
What I need is a PHP code which allows me to get all those and put them together like above.
(Note that the number of values can between 1 and 100), and I need to gather all of them together in a string, no matter how many fields there are in the form. The current code I have can't accomplish this because it has a limited number:
$video = $_POST['title[1]'].' >> '.$_POST['video_id[1]'].' ||| '.$_POST['title[2]'].' >> '.$_POST['video_id[2]'].' ||| '.$_POST['title[3]'].' >> '.$_POST['video_id[3]'].' ||| ';
How can I do it?