> coke machine
> vending machine
> atm
> dinner
> public phone
You probably have an "asset_id" field on each of those.
> and someone is inserting a gas station there... and it has two dinners and
> 3 public phones, so he would check the checkboxes referring to these and
> add a little comment to show the number... right?
>
> but how can I pass this to the next page so I can insert in the tables?
> if I only had the checkboxes, it'd be easy like:
>
> <input type=checkbox name="assets[]"> <== for each of them... but how can
I
> add the input type text next to each of the checkboxes and make them
> referrable?
Despite the "Note:" in FAQ 8.1 (grrr!), you *can* use indices in your FORM
NAME attributes if it makes sense to do so.
<?php
$asset_names[13] = 'Public Restrooms';
echo "<input type=checkbox name=assets[13]> $asset_names[13] <input
name=quantity[13] size=2><BR>\n";
?>
Your processing script will then have:
$assets[13] and $quantity[13], both referring to Public Restrooms.
--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
--
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]