<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Arial; font-size: 10pt; color: #000000'>Thank you. This helped. What I did was to create my confirm_form function as a menu callback:<br><br><?php<br> $items['og/regcode/confirm/%'] = array(<br> 'title' => 'Confirm registration code',<br> 'page callback' => 'drupal_get_form',<br> 'page arguments' => array('og_user_roles_register_confirm'),<br> 'access callback' => 'user_access',<br> 'access arguments' => array('use registration codes'),<br> 'weight' => 10,<br> 'type' => MENU_LOCAL_TASK,<br> ); <br>?><br><br>So, in my submit hook, I do a "drupal_goto" (as opposed to drupal_execute or drupal_get_form) and put the key variable in the argument as part of the url. This works. But, seems to me that it would be much easier to be able to call another form and pass form variables from a submit hook (as I was attempting to do). <br><br>-ron<br><br>Earl Miles wrote:<br><br><div style="margin-left: 40px;"><span style="font-style: italic;">Yes, drupal_execute() submits a form. it does not render the form. The </span><br style="font-style: italic;"><span style="font-style: italic;">idea there is that it happens completely independently.</span><br style="font-style: italic;"><br style="font-style: italic;"><span style="font-style: italic;">To do what you want to do, you are going to need to cache the values </span><br style="font-style: italic;"><span style="font-style: italic;">from your first form somewhere (possibly via values on the confirm form) </span><br style="font-style: italic;"><span style="font-style: italic;">and do your work in the confirm form submit.</span><br style="font-style: italic;"><br style="font-style: italic;"><span style="font-style: italic;">In addition, you have the problem that there is no communication between </span><br style="font-style: italic;"><span style="font-style: italic;">FAPI and whatever called drupal_get_form; your submit cannot actually </span><br style="font-style: italic;"><span style="font-style: italic;">render a form (it returns a value to redirect to, not output) so the </span><br style="font-style: italic;"><span style="font-style: italic;">only way you can do this without hacking fapi like I did is to set a </span><br style="font-style: italic;"><span style="font-style: italic;">global variable.</span><br style="font-style: italic;"><br style="font-style: italic;"><span style="font-style: italic;">You could also install CTools and use the form wizard tool which this is </span><br style="font-style: italic;"><span style="font-style: italic;">a nice example of, and in fact might make a lovely example of how to do </span><br style="font-style: italic;"><span style="font-style: italic;">a more complex confirm form than the ones that currently exist.</span><br></div></div></body></html>