Multiple form submit 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, &amp;$from_submit){
    $form['submit'] = array(
        '#type' =&gt; 'submit',
        '#value' =&gt; t('Submit'),
    );
    return $form;
}


The rows of the table are built like:

$unvalRows[] = array(
            array('data' =&gt; '0'.substr($a[0], 2)),
            array('data' =&gt; 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?
Add the phone number as an argument to numberSubmit_form and include it in your form array:

$unvalRows[] = array(
    array('data' =&gt; '0'.substr($a[0], 2)),
    array('data' =&gt; drupal_render(drupal_get_form('numberSubmit_form', $phone_number))),
);


Then in the form constructor:

function numberSubmit_form ($form, &amp;$from_submit, $phone_number){
    $form['phone_number'] = array(
        '#type' =&gt; 'hidden',
        '#value' =&gt; $phone_number,
    );
    $form['submit'] = array(
        '#type' =&gt; 'submit',
        '#value' =&gt; t('Submit'),
    );
    return $form;
}


It will then be available to you in the submit handler:

function numberSubmit_form_submit(&amp;$form, &amp;$form_state) {
    // do something with $form_state['values']['phone_number']
}