function custom_submit($form_id, $form_values) {<br>&nbsp;print&nbsp; db_query(&quot;INSERT INTO {node_revisions} (title, body, teaser, timestamp) VALUES (&#39;%s&#39;, &#39;%s&#39;, %s, &#39;%d&#39;)&quot;, $form_values[&#39;first_name&#39;], $form_values[&#39;last_name&#39;], $form_values[&#39;city&#39;]);<br>
&nbsp; drupal_set_message(t(&#39;Your form has been saved.&#39;));<br>}<br><br><br>How to supply values for&nbsp; form_id&nbsp; arugument ?<br><br><br><br><div class="gmail_quote">On Sat, Oct 25, 2008 at 4:30 AM, Jonathan Hedstrom <span dir="ltr">&lt;<a href="mailto:jhedstrom@opensourcery.com">jhedstrom@opensourcery.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d"><br>
<br>
<a href="mailto:nebodysguess@gmail.com">nebodysguess@gmail.com</a> wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt; I created a form module which is displayed as a block on the home page.<br>
&gt; On submitting this form you get something like this :<br>
&gt;<br>
&gt; <a href="http://website_name.com/pages/?location=chicago&amp;degree=MBBS" target="_blank">http://website_name.com/pages/?location=chicago&amp;degree=MBBS</a> ....... and<br>
&gt; so on<br>
&gt;<br>
&gt; but I want the parameters to be sent to the results.tpl.php page<br>
&gt;<br>
&gt; I&#39;m using &#39;get&#39; method &amp; $form_state[&#39;redirect&#39;] = &quot;?q=results&quot;. I&#39;m<br>
&gt; using Drupal 6.2<br>
&gt;<br>
&gt; What else should I do ?<br>
</div>Try setting the #action to whatever path you need it to go to.<br>
<br>
$form[&#39;#action&#39;] = url(&#39;foo/bar&#39;)<br>
<br>
<a href="http://api.drupal.org/api/file/developer/topics/forms_api_reference.html#action" target="_blank">http://api.drupal.org/api/file/developer/topics/forms_api_reference.html#action</a><br>
<br>
Cheers,<br>
<br>
Jonathan<br>
<font color="#888888"><br>
--<br>
Jonathan Hedstrom &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OpenSourcery<br>
<a href="http://opensourcery.com" target="_blank">http://opensourcery.com</a> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Technology for Good<br>
<br>
<br>
</font><br>--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br></blockquote></div><br><br clear="all"><br>-- <br>உங்கள் நண்பன் <br>பரணி &nbsp;குமார் <br><br>Regards<br>B.S.Bharanikumar<br>
<br>POST YOUR OPINION <br><a href="http://bharanikumariyer.hyperphp.com/">http://bharanikumariyer.hyperphp.com/</a><br>