Insert form fields into form i have a form inside an .inc file. That form i'm calling it inside a new form i'm making, using form_load_include, so far is working but its rendering the external form outside the new form. this is the code that does that:

&lt;?php
// start form to create projects
function project_creator_form($form, &amp;$form_state) {
    global $user;
    $uuid = $user-&gt;uid;

  form_load_include($form_state, 'inc', 'lc_core', 'location'); //here i call the form
  $renderable = drupal_get_form('location_form', $form_state);
  $location = render($renderable);
  print $location; //here i print the included form

  $form['u_id'] = array(
    '#type' =&gt; 'textfield',
    '#title' =&gt; t('Identificador de Usuario'),
    '#size' =&gt; '6',
    '#attributes' =&gt; array('readonly' =&gt; 'readonly'),
    '#default_value' =&gt; $uuid,
    '#description' =&gt; "Este es su identificador de usuario, (no se puede modificar)",
    );

    $form['p_name'] = array(
    '#type' =&gt; 'textfield',
    '#title' =&gt; t('Nombre de Proyecto'),
    '#required' =&gt; TRUE,
    '#description' =&gt; "Introduzca el nombre del proyecto.",
    );

    $form['p_type'] = array(
    '#type' =&gt; 'select',
    '#title' =&gt; t('Seleccione tipo de proyecto'),
    '#options' =&gt; array(
      'Obra Nueva' =&gt; t('Obra Nueva'),
      'Adecuación' =&gt; t('Adecuación'),
      'Remodelacion' =&gt; t('Remodelación'),
      'Ampliación' =&gt; t('Ampliación'),
      'Refuerzo estructural' =&gt; t('Refuerzo estructural'),
      'Mantenimientos' =&gt; t('Mantenimientos'),
  ),
    '#required' =&gt; TRUE,
    '#description' =&gt; t('Seleccione el tipo de intervención a relizar.'),
    );

    $form['p_area'] = array(
    '#type' =&gt; 'textfield',
    '#title' =&gt; t('Area del proyecto (m2)'),
    '#required' =&gt; TRUE,
    '#description' =&gt; "Ingrese la cantidad de metros cuadrados (m2) del proyecto.",
    '#size' =&gt; '6',
    );

  $form['p_desc'] = array(
    '#type' =&gt; 'textarea',
    '#title' =&gt; t('Descripción'),
    '#description' =&gt; "Describa de que se trata el proyecto a ejecutar, puede especificar algunos detalles e información que considere necesaria.",
    '#rows' =&gt;4,
    '#resizable' =&gt; FALSE,
    '#required' =&gt; TRUE,
    );

    $form['buttons'] = array(
    '#type' =&gt; 'submit',
    '#value' =&gt; t('Guardar proyecto'),
    );    
  return $form;

}

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

    db_set_active('civilproconstru'); //OPEN alter DATABASE.
    db_insert('project_info')
        -&gt;fields(array(
        'u_id' =&gt; $form_state['values']['u_id'],
        'p_name' =&gt; $form_state['values']['p_name'],
        'p_type' =&gt; $form_state['values']['p_type'],
        'p_area' =&gt; $form_state['values']['p_area'],
        'p_ctry' =&gt; $form_state['values']['p_ctry'],
        'p_dept' =&gt; $form_state['values']['p_dept'],
        'p_city' =&gt; $form_state['values']['p_city'],
        'p_desc' =&gt; $form_state['values']['p_desc'],

        ))-&gt;execute();
$p_name=$form_state['values']['p_name'];        
$loglink = l("Ver Proyectos", 'admin/lista_de_proyectos');
$msg= "El proyecto $p_name ha sido indexado, continue ingresando información del proyecto en $loglink o puede seguir indexando nuevos proyectos.";
drupal_set_message($msg);   

db_set_active(); //CLOSE alter DATABASE.
}


And this is the output i'm getting:


Despite i'm printing inside the function that is creating the form drupal it's rendering outside of it... 

HOW CAN I FIX THIS???? thanks for the help!...
Instead of printing the form when you load it, create a new form item of type markup and add your subform there as markup.

$form['subform'] = array(
  '#type' =&gt; 'markup',
  '#markup' =&gt; $location,
);


This would fix the display order but your submit handler will need to handle the extra items.