Table and Form in the same page
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.