function mymodule_search_form($form, &$form_state) {
$form..... define the form here
$form['submit'] = array(
'#type' => 'submit',
'#value' => 'Search',
);
return $form;
}
function mymodule_search_form_submit($form, &$form_state) {
$output = this is the result with a table of data.
drupal_set_message($output);
return;
}
So basically I want to have a form to search for something from the database. After that, click "Submit" to search and get the result.
I want to show the result only in the form on the same page of the form.
Do not go to another page, only on the original page of the form.
The form can be clean / reset in its original state, which is good.
http://drupal.org/node/542646
This discussion is what I want, but there is no solid result / solution.
source
share