I am redirecting my users with the following code:
drupal_goto("event/registration/failed",
array(
'query' => array('nid'=>$submission->nid, 'sid'=>$submission->sid),
)
);
On the target page I am executing the following function:
function _event_registration_failed($nid, $sid){
dsm($_REQUEST);
drupal_set_message("TESTING NID: {$nid}");
drupal_set_message("TESTING SID: {$sid}");
}
My the variables in the drupal_set_message calls do not have any data. But, the $_REQUEST object above has the data I expected.
Is there a correct way to access argument passed with drupal_goto or is it correct to use the $_REQUEST object array?