Table and Form in the same page I have a quick question. I work with a form that consists of the following:

$form['data_field'] = array(
    '#type' =&gt; 'textfield',
    '#title' =&gt; t('Killer search engine!'),
    '#id'   =&gt; 'killer-search-engine',
    '#maxlength' =&gt; 1024,
    '#description' =&gt; t('Search by using tags and free text'),
);

$form['submit'] = array(
    '#type' =&gt; 'submit',
    '#value' =&gt; 'Go!!',
);
...
...
fill $table
...
...
if(sizeof($form_state['input'])!=0) {

    $form['table'] = array (
        '#title' =&gt; 'TABLE',
        '#type'   =&gt; 'table',
        '#value' =&gt; $table,
    );
}
return $form.


The form is appearing but the table element of it, even though it is filled with html code of an actual table(I checked through dpm($form)) does not appear.
Anyone with a quick fix?

Thanks beforehand
If you want to display the values in table format you can use Table theme
Example:-

$form['table'] = array(
  '#theme' =&gt; 'table',
  '#header' =&gt; $header,
  '#rows' =&gt; $rows,
  '#empty' =&gt; t('Empty Rows')
  );


$header and $rows  would be arrays.