How to create a form on a new page?
To create a form on a page you need to use Drupal's Form API. It seems a bit complex at the first sight, but it isn't as it seems.

The steps you need to follow:


Create a custom module
Implement hook_menu() in your module and set a path for your page which should render the form.
A form builder function that builds a form using the Form API.


An Example for hook_menu() implementation:

function YOURMODULE_menu() {
  $items['some/path'] = array(
    'title' =&gt; 'My page title',
    'description' =&gt; 'An example page',
    'page callback' =&gt; 'drupal_get_form',
    'page arguments' =&gt; array('YOURMODULE_example_form'),
  );
  return $items;
}


This code registers a paths as http://example.com/some/path and calls drupal_get_form() function, which gets a form with the given id, which in this example is YOURMODULE_example_form.

An example for the form builder function:

function YOURMODULE_example_form($form, &amp;$form_state) {
  $form['some_text_field'] = array(
    '#title' =&gt; t('Enter some text'),
    '#type' =&gt; 'textfield',
    '#required' =&gt; TRUE,
  );

  $form['submit'] = array(
    '#type' =&gt; 'submit',
    '#value' =&gt; t('Send form'),
  );

  return $form;
}