problem with function to form

hi experts below test previously was function i converted that function to form,but when i use the form tags like textfield,select in output i am getting Array,ie actual fields are not generated function test_qform() { $form['model'] = array( '#type' => 'textfield', '#title' => 'Enter your Model No', '#size' => 40, '#maxlength' => 60, '#required'=> TRUE, ); $form[] = array( '#type' => 'submit', '#value' => t('submit'), ); $form['#method'] = 'post'; return $form; }

where's drupal_get_form() ?

You don't specify what version of Drupal. If it's Drupal 5 then you get the form by calling drupal_get_form('test_qform') (notice the string param is the name of the form function). If it's Drupal 4.7 you should return from the function return drupal_get_form('my_form_id', $form);