I suspect you didn&#39;t use Drupall&#39;s Form API - and you should. If you&#39;re not using it, then you can use the Form Examples in the Examples project to come up to speed on it - <a href="http://drupal.org/project/examples">http://drupal.org/project/examples</a>. The default behavior of the Form API is to not do what you&#39;re concerned about.<br>
<br>In Drupal, one would not normally use $_REQUEST, $_GET, and friends (or only as a last resort). Normally you use more Drupal-esqe APIs.<br><br>-Randy<br><br><div class="gmail_quote">2010/7/9 Lluís Forns <span dir="ltr">&lt;<a href="mailto:enboig@gmail.com">enboig@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">I have added a form to a custom node using hook_view. My problem is<br>
that if I refresh the browser after submitting the form it is<br>
submitted again. Is there a way to avoid this?<br>
<br>
I tried adding  &quot;$_REQUEST[&#39;destination&#39;] = &#39;node/&#39;.$nid; &quot; at the end<br>
of submit function but it don&#39;t work.<br>
<br>
Thanks<br>
<font color="#888888"><br>
--<br>
*Les normes hi són perquè hi pensis abans de saltar-te-les<br>
*La vida és com una taronja, què esperes a exprimir-la?<br>
*Si creus que l&#39;educació és cara, prova la ignorància.<br>
*La vida és com una moneda, la pots gastar en el que vulguis però<br>
només una vegada.<br>
*Abans d&#39;imprimir aquest missatge, pensa en el medi ambient.<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Randy Fay<br>Drupal Module and Site Development<br><a href="mailto:randy@randyfay.com">randy@randyfay.com</a><br>+1  970.462.7450<br><br>