How do I display data in a dynamically created page I have a form on the page that has multiple fields, one of which is a path (www.sample.com/PATH). With form data that I have, I need to forward to that dynamic page, and display form data (5 nodes for example).

This is the code I am using.

function MODULE_menu() {
  $items = array();
  $items['admin/URL_TO_SEE_FORM'] = array(
    'title' =&gt; 'Some title',
    'description' =&gt; 'Desc',
    'page callback' =&gt; 'drupal_get_form',
    'page arguments' =&gt; array('MODULE_form'),
    'access arguments' =&gt; array('administer users'),
    'type' =&gt; MENU_NORMAL_ITEM,
  );
  return $items;
}


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

  $form['form_path'] = array(
    '#type' =&gt; 'textfield',
    '#title' =&gt; t('Path'),
    '#size' =&gt; 60,
    '#maxlength' =&gt; 128,
    'autocomplete_path' =&gt; FALSE,
    '#required' =&gt; TRUE,
  );

  // other code that get's different data with ajax etc.

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

  return $form;
}

function MODULE_form_validate($form, &amp;$form_state) {
  // some validation
}

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

  $form_path = trim($form_state['values']['form_path']);

  $nodes = $form_state['values']['nodes'];
  // I need to get content from nodes ids whic should be easy

  // Need to set content to page under www.sample.com/$form_path

  $form_state['redirect'] = $form_path;
}


How can I do it?
I've managed to do it by using Views module.

On first submit, I would dynamically create view, and on each concurrent submit I would create additional view display (page).