[Zope] ZSQL questions
Jon Erickson
jon.erickson@neicoltech.org
13 May 2002 14:30:43 -0500
On Mon, 2002-05-13 at 14:06, McDonnell, Larry wrote:
> Hi,
>
> This was the only way I was able to get this to work.
>
> <form action="http://proton-80556:8080/intranet/input_test/manage_test"
> method="get">
> input_test is the zsql.
>
> I tried this method <form name="form1" method="post" action="input_test">
> but this is where the next thing I see is this zsql method in test mode. Any
> sugesstions, thanks ahead of time.
Try this:
<form action="form_handler" method="POST">
A very simple form_handler would be a dtml method like so:
----------------------------------------------
<dtml-var standard_html_header>
<dtml-call expr="zsql_method_name(REQUEST)">
<dtml-var standard_html_footer>
----------------------------------------------
When the form is posted (user clicks on submit) the form variables are
stored in the REQUEST object, which you can pass to a zsql method. You
will need to make sure that the form variable names match that of your
zsql method arguments.
Jon