PHP form element grab from an array

hi can you help to get all the values from an array of the following form.

<?php while($row=mysql_fetch_assoc($query)); ?>

— can you tell me how to insert all the looped input fields to mysql DB.

please help

Hi there,

We would appreciate if you could provide few more codes so we can get into the answer right away.

Thanks!

you cant do it this way ,

but if you want your form to be in array you should do it like this

<form method='post' action='.php'>
<input type='text' name='value[]' />
<input type='text' name='value[]' />
<input type='text' name='value[]' />
<input type='submit' value='submit the form' />
</form>

then you can get it in php
[php]
$_POST[‘value’];
or
$_POST[‘value’][‘0’];
[/php]

…etc

Sponsor our Newsletter | Privacy Policy | Terms of Service