get node title from url I have field_employee and i want to get his default value from nid in url 

../node/add/qualifications?field_employee=3617&amp;destination=node/3617


To display it Like:
field_employee == $node->title; //As a default value
function _get_emp_name(){
 global $base_url;
  $current_url = $base_url . request_uri();
  $url_sub = substr($current_url, 0, explode('&amp;', $current_url));
  $to_array = explode('&amp;', $current_url);
  $ar_name = explode("/", $to_array[1], 2);
  $node = node_load($ar_name[1]);
  $name = $node-&gt;title;
  return $name;


}

Then with form_alter I use:

$form['field_employee']['und'][0]['target_id']['#default_value'] = _get_emp_name();