Posted by james.n.grace@gmail.com on 10/05/07 14:38
Hooray -- that worked perfectly!
THANKS!!!
On Oct 5, 9:57 am, "Rik Wasmus" <luiheidsgoe...@hotmail.com> wrote:
> If you can change the fieldnames in the form itself, add '[]' to the
> repeated fields, like:
> <input name="FileName[]" type="hidden" value="<%= FileName %>">
>
> In the receiving script you could do this:
>
> <?php
>
> if(is_array($_POST['FileName']) && !empty($_POST['FileName'])){
> foreach($_POST['FileName'] as $key => $value){
> //do your thing
> echo "$key: {$_POST['FileName'][$key]} {$_POST['DirPath'][$key]}
> {$_POST['RIDValue'][$key]}\n";
> }}
>
> --
> Rik Wasmus
[Back to original message]
|