<HTML>
<HEAD> <META http-equiv=Content-Type content="text/html; charset=utf-8"> 
<STYLE title="table borders">.htmtableborders, .htmtableborders td, 
.htmtableborders th {border : 1px dashed lightgrey ! important;}  </STYLE>  
<STYLE type=text/css>html, body { border: 0px; }  span.macro, span.macro ul, 
span.macro div, span.macro p {background : #CCCCCC;} </STYLE>  <STYLE 
type=text/css> p{margin-bottom: 0.15em;margin-top: 
0.15em;}body{font-family:tahoma;font-size:10pt;}; </STYLE> </HEAD> <BODY>
<FONT style="FONT-SIZE: 10pt; FONT-FAMILY: tahoma"> <DIV>&nbsp;Hello 
Thomas,</DIV> <DIV>Thanks for your response.</DIV> <DIV>&nbsp;</DIV> <DIV>
Onthis moment my databse writing is&nbsp;based on DTML.</DIV> <DIV>
&nbsp;</DIV> <DIV>The problem is that when I test this Z&nbsp;MySQL 
Method&nbsp;it's working.</DIV> <DIV>&nbsp;</DIV> <DIV>Arguments:</DIV> <DIV>
ID:int=1<BR>voornaam:string=""<BR>achternaam:string=""</DIV> <DIV>
&nbsp;</DIV> <DIV>Query:</DIV> <DIV>INSERT INTO users SET<BR>ID = 
1234567894,<BR>voornaam = 'Martin',<BR>achternaam = 'Koekenberg'<BR></FONT>
<BR>Everything is writen in the database.</DIV> <DIV>&nbsp;</DIV> <DIV>Now 
the following....</DIV> <DIV>I submit a form (build with formulator).</DIV> 
<DIV>The action point to a dtml Method witch calls the above Z MySQL Method 
(dtml-call write_user).</DIV> <DIV>&nbsp;</DIV> <DIV>Nothing is 
happening........</DIV> <DIV>&nbsp;</DIV> <DIV>I'm doing something wrong, 
but what......</DIV> <DIV>&nbsp;</DIV> <DIV>The next step is to remove the 
valuea and replace them with a &lt;dtml-sqlvar ..........</DIV> <DIV>and 
replace the &lt;dtml-call write_user with &lt;dtml-call 
write_user(field_id,field_voornaam,field_acyternaam</DIV> <DIV>&nbsp;</DIV> 
<DIV>Can you help me withe the next step.... I't the first time that I use 
MySQL/Zope and Z MySQL Method.</DIV> <DIV>&nbsp;</DIV> <DIV>Regards,</DIV> 
<DIV>&nbsp;</DIV> <DIV>Martin Koekenberg</DIV> <BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: 
#000000 2px solid; MARGIN-RIGHT: 0px">-----Original Message-----<BR>From: 
Thomas Bennett &lt;bennetttm@appstate.edu&gt;<BR>To: zope@zope.org<BR>Date: 
Fri, 26 May 2006 09:16:24 -0400<BR>Subject: Re: [Zope] Z SQL Method 
question<BR><BR> <DIV style="FONT-FAMILY: monospace, courier new, courier">
With a lack of information here I'll answer based fully on assumption based 
on <BR>dtml. <BR><BR>&nbsp;In your form the action should go to a dtml 
method.<BR><BR>&lt;form action="optional_path_to/some_method" ...&gt;<BR><BR>
The dtml method should have a call to your Z SQL Method<BR><BR>&lt;dtml-call 
my_sql_method&gt;<BR><BR>And then you can add anything in the dtml method 
which will be viewed as the <BR>response page to the user that submitted the 
form. &nbsp;You can also do some <BR>validation here if needed, with 
conditional statements. &nbsp; I usually add a <BR>redirect under the 
dtml-call to go to a different response page to the user <BR>because if the 
user reloads the page with the dtml-call it will send the data <BR>to the 
database again unless there is a conflict like unique fields etc..<BR><BR>
or<BR><BR>Are you using ZPT?<BR><BR>Thomas<BR><BR>On Friday 26 May 2006 
08:54, Martin Koekenberg wrote:<BR>&gt; Hello,<BR>&gt;<BR>&gt; Who has 
experience with Z SQL Method.<BR>&gt; I Created a from to enten some data 
into MySQL server. I used Z SQL Method<BR>&gt; to write the dat into the 
databse. Everytime I submit the form I get a<BR>&gt; screen with the field 
in my Z SQL Method component.<BR>&gt;<BR>&gt; How can I write the dat from a 
form into my database at once by using Z SQL<BR>&gt; Method ?<BR>&gt; I 
tested the database connetion, that is working.<BR>&gt;<BR>&gt; Regards,<BR>
&gt;<BR>&gt; Martin Koekenberg<BR><BR>-- <BR>
====================================================================<BR>
Thomas McMillan Grant Bennett&nbsp; &nbsp;&nbsp; &nbsp;Appalachian State 
University<BR>Computer Consultant III&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; 
&nbsp;P O Box 32026<BR>University Library&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; 
&nbsp;&nbsp; &nbsp;Boone, North Carolina 28608<BR>(828) 262 6587<BR><BR>An 
important measure of effort in coding is the frequency with which you write 
<BR>something that doesn't actually match your mental representation of the 
<BR>problem, and have to backtrack on realizing that what you just typed 
won't <BR>actually tell the language to do what you're thinking. -Eric 
Raymond<BR><BR>Library Systems Help Desk: <A target=_blank 
href="http://linux.library.appstate.edu/help">
http://linux.library.appstate.edu/help</A><BR>
====================================================================<BR>
_______________________________________________<BR>Zope maillist &nbsp;- 
&nbsp;Zope@zope.org<BR><A target=_blank 
href="http://mail.zope.org/mailman/listinfo/zope">
http://mail.zope.org/mailman/listinfo/zope</A><BR>** &nbsp; No cross posts 
or HTML encoding! &nbsp;**<BR>(Related lists - <BR>&nbsp;<A target=_blank 
href="http://mail.zope.org/mailman/listinfo/zope-announce">
http://mail.zope.org/mailman/listinfo/zope-announce</A><BR>&nbsp;<A 
target=_blank href="http://mail.zope.org/mailman/listinfo/zope-dev">
http://mail.zope.org/mailman/listinfo/zope-dev</A> )<BR></DIV></BLOCKQUOTE>
</BODY>
</HTML>