<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.&nbsp; What I did was to create my confirm_form function as a menu callback:<br><br>&lt;?php<br>&nbsp;&nbsp;&nbsp; $items['og/regcode/confirm/%'] = array(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'title' =&gt; 'Confirm registration code',<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'page callback' =&gt; 'drupal_get_form',<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'page arguments' =&gt; array('og_user_roles_register_confirm'),<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'access callback' =&gt; 'user_access',<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'access arguments' =&gt; array('use registration codes'),<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'weight' =&gt; 10,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'type' =&gt; MENU_LOCAL_TASK,<br>&nbsp;&nbsp;&nbsp;&nbsp; );&nbsp; <br>?&gt;<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.&nbsp; This works.&nbsp; 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).&nbsp; <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>