>$num_inputs = 5; // if you want 5 sets of checkboxes and text inputs.
>
>for ( $i = 0; $i < $num_inputs; $i++ )
> {
> echo "<input type=checkbox name=checklist[$i]>Cb $i <input type=text
>name=text[$i]>\n";
> }
yeah... that can work, I think it's a little less messy than what I've
done... I did it like this:
for each checkbox I did
echo "<input type=checkbox name=checklist[] value=$id> Cb1 <input type=text
name=asset_$id>";
then I check if isset(${"asset_".$id}) in my code... it's working fine...
but it's kinda 'dirty'... I'll try yours... thanks! :)
____________________________
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]