<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi. You have to pass another variable to drupal_execute, with node<br>

information. If I remember well it should be like this:</blockquote><div>[snip] <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
&nbsp;&nbsp; $k = drupal_execute($form_id,$form, $form);<br>
</blockquote><div><br>Hmm, I&#39;m not so sure.&nbsp; drupal_execute expects exactly two parameters, not three.<br>(API definition for Drupal 5: <a href="http://api.drupal.org/api/function/drupal_execute/5">http://api.drupal.org/api/function/drupal_execute/5</a><br>
API definition for Drupal 6: <a href="http://api.drupal.org/api/function/drupal_execute/5">http://api.drupal.org/api/function/drupal_execute/5</a>)<br><br>One thing that I can see wrong in the code that that the original poster quoted is that he is submitting an array of arrays, when only an array is called for.<br>
<br>$form[&#39;value&#39;] = array(<br>&nbsp; // stuff<br>);<br><br>should actually probably be<br><br>$form_values = array(<br>&nbsp; // stuff<br>);<br><br>Best,<br>William<br><br></div></div><br>