I'm stuck, I want to insert form data from array fields like below into MySQL:
<input type='text' name='name[]' />` and `<input type='text' name='url[]' />
I know how to output the data for one field like this example
foreach($_POST['name'] as $name)
{
echo $name;
}
But in my form I have both <input type='text' name='name[]' /> and <input type='text' name='url[]' /> how can I get this to work correctly?