Drupal_goto => POST $result as node Title
You add this line before your code:

$search_term = arg(2);

Send it in your drupal_goto, but you need to specify which content type to add (here i chose "article"):

&lt;?php drupal_goto('node/add/article', array('query'=&gt;array('title'=&gt;$search_term))); ?&gt;

And hook your node form in a custom module (here I chose content type "Article") :

function MY_MODULE_form_node_form_alter(&amp;$form, &amp;$form_state, $form_id) {
  // Find the content type of the node we are editing.
  $content_type = $form['#node']-&gt;type;
  if ($content_type == 'article') {
    if(isset($_GET['title'])){
      $form['title']['#default_value'] = $_GET['title'];
    }
  }
}