Form and Table on same page
You can use the Table theme. Example :-

$form['data_field'] = array(
'#type' =&gt; 'textfield',
'#title' =&gt; t('Search!'),
'#id'   =&gt; 'search',
'#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(
'#theme' =&gt; 'table',
'#header' =&gt; $header,
'#rows' =&gt; $rows,
'#empty' =&gt; t('Empty Rows')
);
}
return $form.