Building Custom Drupal Form I am trying to display a custom form with Drupal 7.

Here is what I am trying:

function mymodule_menu() {
  $items = array();

  $items['pay-online'] = array(
    'title' =&gt; 'Pay Online',
    'description' =&gt; 'Pay Online',
    'type' =&gt; MENU_NORMAL_ITEM,
    'page callback' =&gt; 'drupal_get_form',
    'page arguments' =&gt; array('mymodule_form_generate'),
    'access arguments' =&gt; array('access content'),
  );

  return $items;
}


function mymodule_form_generate() {

  $form['first_name'] = array(
    '#type' =&gt; 'textfield',
    '#title' =&gt; 'First Name',
    '#attributes' =&gt; array('placeholder' =&gt; 'First Name'), 
  );

// ... etc, more form code

return $form;


What I am getting on the screen is a form, but it is not a 'drupal' form. It's just an array of form fields. No form id, etc.

What do I have to do in Drupal 7 to accomplish this?
You should replace

function mymodule_form_generate() {
  $form = array();


with 

function mymodule_form_generate($form, &amp;$form_state) {


I'm not sure if this fixes things for you, but that is the only thing I can see that is out of order.