Embedding a content type node form with Drupal 6



How do you invoke or embed a content type node form in Drupal 6? Following code shows how to:

<?php
 
global $user;
 
$type 'garden';
 
$node = array('uid' => $user->uid'name' => $user->name
'type' => $type);
 
module_load_include('inc''node''node.pages');

  
$form drupal_get_form($type .'_node_form',  $node);

 
print_r($form);
?>


COMMENTS


AHAH fields return error =(