[Zope-dev] Simple Question

jawad haider jawadh@hotmail.com
Wed, 23 May 2001 10:35:46


<html><DIV>Hi:</DIV>
<DIV>I have recently started exploring zope and I want to develop this simple thing:</DIV>
<DIV>A search form and when&nbsp;somebody presses the submit button after&nbsp;specifying  the search criteria, I want </DIV>
<DIV>search results to be displayed on the same page below the&nbsp; the search criteria.</DIV>
<DIV>&nbsp;</DIV>
<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 turns call z sql method which performs actual search in the MY SQL DB.&nbsp;Any suggetions, links or references to acomplish this are welcome.</DIV></DIV>
<DIV>&nbsp;</DIV>
<DIV>Regards</DIV>
<DIV>Jawad</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</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>