Re: [PHP] Processing a table of input fields

2007-05-12 Thread Richard Lynch
Use name="attend[]" This will simplify life immensely on the processing side where you can just iterate through $_POST['attend'] as an array and have the $user_id. Ditto for the pay[] and other fields. Note that the checkboxes will ONLY send in keys/values for the checked ones -- You get nothing

Re: [PHP] Processing a table of input fields

2007-05-11 Thread Todd Cary
Jim Lucas wrote: Richard Davey wrote: Todd Cary wrote: I create a table of input fields so the user (secretary at a Rotary meeting) can check mark if the person attended and how much they paid for lunch. Each input field name has the user ID as part of it. What is the best way to process t

Re: [PHP] Processing a table of input fields

2007-05-11 Thread Todd Cary
Jim Lucas wrote: Richard Davey wrote: Todd Cary wrote: I create a table of input fields so the user (secretary at a Rotary meeting) can check mark if the person attended and how much they paid for lunch. Each input field name has the user ID as part of it. What is the best way to process t

Re: [PHP] Processing a table of input fields

2007-05-11 Thread Jim Lucas
Richard Davey wrote: Todd Cary wrote: I create a table of input fields so the user (secretary at a Rotary meeting) can check mark if the person attended and how much they paid for lunch. Each input field name has the user ID as part of it. What is the best way to process the table when the

Re: [PHP] Processing a table of input fields

2007-05-11 Thread Richard Davey
Todd Cary wrote: I create a table of input fields so the user (secretary at a Rotary meeting) can check mark if the person attended and how much they paid for lunch. Each input field name has the user ID as part of it. What is the best way to process the table when the submit button is press

[PHP] Processing a table of input fields

2007-05-11 Thread Todd Cary
I create a table of input fields so the user (secretary at a Rotary meeting) can check mark if the person attended and how much they paid for lunch. Each input field name has the user ID as part of it. What is the best way to process the table when the submit button is pressed? There are abo