rendered paste body<?php/** * Implementation of hook_help(). */function myform_help($section) { switch ($section) { case 'admin/modules#description': return t('blah myform'); }}/** * Implementation of hook_menu(). */function myform_menu($may_cache) { $items = array(); if ($may_cache) { $items[] = array('path' => 'myform', 'title' => t('myform'), 'access' => user_access('access content'), 'callback' => 'myform_callback', 'type' => MENU_CALLBACK); $items[] = array('path' => 'myform/results', 'title' => t('myform/results'), 'access' => user_access('access content'), 'callback' => 'myform_results', 'type' => MENU_CALLBACK); } return $items;}function myform_callback() {$form['inputs'] = array('#type' => 'fieldset','#title' => 'inputs','#tree' => TRUE,'#id' => 'testname',);$form['inputs']['name'] = array('#type' => 'textfield','#title' => t('name'),'#default_value' => variable_get('name', ''),);$form['inputs']['submit'] = array('#type' => 'submit','#value' => t('submit'),);$output = drupal_get_form('myform_callback', $form);return $output;}function myform_callback_submit($form_id, $form_values) {$name = $form_values['inputs']['name']; //$msg = 'your name is ' . $name;foreach ($_POST as $key => $value) {$msg .= print_r($value, true);}return 'myform/results';}function myform_results() {drupal_set_message($name);drupal_set_message('hhhh');}