[Zope-dev] Simple Question

jawad haider jawadh@hotmail.com
Wed, 23 May 2001 19:44:05


<html><DIV>
<P><BR>Hi:</P>
<P>Thanks for your response. </P>
<P>I wanted to make a search form in which search criteria and search result will appear on the same page e.g.search criteria on the top and when the submit button is pressed the list of search results should be displayed in the bottom of the page.</P>
<P>But when I try to accomplish this using the following code the search results are displayed on a separate page. </P>
<DIV>Following is the piece of code,</DIV>
<DIV>&nbsp;</DIV>
<DIV>&lt;dtml-var standard_html_header&gt;<BR>&lt;form action= "dtFindCustomer"&gt;<BR>&lt;table&gt;<BR>&lt;tr&gt;<BR>&lt;th align="left"&gt;Name&lt;/th&gt;<BR>&lt;td&gt;&lt;input type="text"name="name"&gt;&lt;/td&gt;<BR>&lt;/tr&gt;<BR>&lt;tr&gt;<BR>&lt;th align="left"&gt;&lt;em&gt;Age&lt;/em&gt;&lt;/th&gt;<BR>&lt;td&gt;&lt;input type="text"name="age"size="3"&gt;&lt;/td&gt;<BR>&lt;/tr&gt;<BR>&lt;/table&gt;<BR>&lt;input type="submit"value="Search Customer"&gt;<BR>&lt;/form&gt;<BR></DIV>
<DIV>&nbsp;</DIV>
<DIV>
<DIV>Here dtFindCustomer is a DTML method which in turn call z sql method which performs actual search in the MY SQL DB. The control is transfered to the next page when the form action method is called. </DIV>
<DIV>&nbsp;</DIV>
<DIV>HOW CAN i redirect the control on the same page and get the results returned to the same page  and displayed on this same page ?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Hope I am able to explain my question this time.</DIV></DIV>
<DIV>&nbsp;</DIV>
<DIV>Regards</DIV>
<DIV>Jawad</DIV>
<DIV>&nbsp;</DIV>
<P><BR>&nbsp;</P></DIV>
<DIV></DIV>
<DIV></DIV>&gt;From: "Andreas Jung" <ANDREAS@DIGICOOL.COM>
<DIV></DIV>&gt;To: "jawad haider" <JAWADH@HOTMAIL.COM>, <ZOPE-DEV@ZOPE.ORG>
<DIV></DIV>&gt;Subject: Re: [Zope-dev] Simple Question 
<DIV></DIV>&gt;Date: Wed, 23 May 2001 15:00:44 -0400 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;After reading your description I don't know yet what your real 
<DIV></DIV>&gt;problem or question is ?! 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Andreas 
<DIV></DIV>&gt; 
<DIV></DIV><br clear=all><hr>Get Your Private, Free E-mail from MSN Hotmail at <a href="http://www.hotmail.com">http://www.hotmail.com</a>.<br></p></html>