Drupal Registration Form In Lightbox With Ajax I updated my post up top to pull in the user form created in Drupal, it now loads it in a lightbox correctly, how can I submit this using AJAX, validate this all in the Lightbox? any ideas?

Any help would be good help :)

    &lt;?php
function ajax_register_menu() {
  $items['request'] = array(
    'page callback' =&gt; 'ajax_register_mypage',
    'page arguments' =&gt; array('ajax_register_form'),
    'type' =&gt; MENU_CALLBACK,
    'access callback' =&gt; TRUE,
    'title' =&gt; t('MY TITLE'),
  );

  $items['request/submit'] = array(
    'page callback' =&gt; 'ajax_register_submit',
    'type' =&gt; MENU_CALLBACK,
    'access callback' =&gt; FALSE,
  );

  return $items;
}

function ajax_register_mypage($form){
    print '&lt;div style="background: #FFFFFF;"&gt;';
    print 'Hello World';
    print render(drupal_get_form('user_register_form'));
    print '&lt;/div&gt;';
}

function ajax_register_submit() {
    $returnO = new StdClass();
    $returnO-&gt;status = true;
    $returnO-&gt;message = 'MY INFORMATIVE MESSAGE HERE';

    print drupal_json($returnO);

    die;
}
?&gt;
If I recall correctly, instead of calling render() for your drupal_get_form(), call drupal_render() instead.

&lt;?php 

function ajax_register_mypage($form){
  print 'Hello World';
  print drupal_render(drupal_get_form($form));
}

?&gt;


Hope this ends up solving your issue on this one.