Graeme, please refer to the Forms API Quickstart Guide : <a href="http://api.drupal.org/api/file/developer/topics/forms_api.html/5">http://api.drupal.org/api/file/developer/topics/forms_api.html/5</a><br><br><div><span class="gmail_quote">On 2/6/08, <b class="gmail_sendername">Graeme McKibbin</b> &lt;<a href="mailto:gmckibbin@iburst.co.za">gmckibbin@iburst.co.za</a>&gt; wrote:</span><blockquote class="gmail_quote" style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; margin-left: 0.80ex; border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; padding-left: 1ex">
<div> Not sure if I&#39;m on the same page as you, but I need to have a form that has some input fields and a submit button, and when it&#39;s clicked, the form passes the input to itself (or another page) and then displays a table of results from a query (that I&#39;ve created). Any idea?&nbsp;<div>
<br><div><div><span class="e" id="q_117f04fab31c177c_1"><br><div><div>On 06 Feb 2008, at 8:59 PM, Ivan Sergio Borgonovo wrote:</div><br><blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px">
Maybe there is a clean way to recycle most of FAPI if you don&#39;t need</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px">to save anything in _submit but if you&#39;d just like to produce some</div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px">output based on form input?</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px">
<br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px">eg. you&#39;ve 2 fields and the form &quot;landing&quot; page should display the</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px">
product (the landing page may still be the form path itself).</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px"><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px">
If there is such a technique that let you intercept $form_values and</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px">$form_id outside _submit _validate and display output accordingly I&#39;d</div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px">be glad to know.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px"><br></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px">Otherwise I&#39;d really enjoy to see a _display hook that in spite of</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px">
showing the form or redirecting somewhere else would just have access</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px">to $form_id<span>&nbsp; </span>and $form_values as _validate and _submit but would</div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px">output something else other than the form.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px">
<br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px"><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px">--<span>&nbsp;</span></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px">Ivan Sergio Borgonovo</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px"><a href="http://www.webthatworks.it" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.webthatworks.it</a></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px"><br></div></blockquote></div><br></span></div><div><span style="border-collapse: separate; border-spacing: 0px; color: #000000; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px"><br>
<span style="border-collapse: separate; border-spacing: 0px; color: #000000; font-size: 12px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px"><div>
<br></div><div><br></div><div>Kind Regards</div><div><br></div><div>Graeme McKibbin</div><div>Software Developer</div><div><br></div><br></span></span></div><br></div></div></div></blockquote></div><br><br clear="all"><br>
-- <br>Oleg Terenchuk <br>Web Manager / Developer<br>Phone: 917 - 306 - 5653