I have a table of information displayed on a page. Each row of this table has its own submit button. I need to be able to pass information depending on what submit button is pressed.
The form is built like
function numberSubmit_form ($form, &$from_submit){
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Submit'),
);
return $form;
}
The rows of the table are built like:
$unvalRows[] = array(
array('data' => '0'.substr($a[0], 2)),
array('data' => drupal_render(drupal_get_form('numberSubmit_form'))),
);
How am I able to determine which submit button has been used and pass the applicable phone number?