Dear Martin<br> <br> If you build your form with formulator, formulator add a prefix (field_variablename) to your variable. You need to use:<br> &lt;dtml-call "YourForm.validate_all_to_request(REQUEST)"&gt;&nbsp; to remove the prefix (field_) before updating your database. Plesae read formulator help to see more examples.<br> <br> You can try using "&lt;dtml-var REQUEST&gt;" to see your form variables.<br><br>Good luck.<br><br>CY<br><br><b><i>Martin Koekenberg &lt;martin@digital-adventures.nl&gt;</i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">   <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>  <font style="font-size: 10pt; font-family: tahoma;"> </font><div><font style="font-size: 10pt; font-family: tahoma;">&nbsp;Hello  Thomas,</font></div><font style="font-size: 10pt; font-family: tahoma;"> </font><div><font style="font-size: 10pt; font-family: tahoma;">Thanks for your response.</font></div><font style="font-size: 10pt; font-family: tahoma;"> </font><div><font style="font-size: 10pt; font-family: tahoma;">&nbsp;</font></div><font style="font-size: 10pt; font-family: tahoma;"> </font><div> <font style="font-size: 10pt; font-family: tahoma;">Onthis moment my databse writing is&nbsp;based on DTML.</font></div><font style="font-size: 10pt; font-family: tahoma;"> </font><div> <font style="font-size: 10pt; font-family: tahoma;">&nbsp;</font></div><font style="font-size: 10pt; font-family: tahoma;"> </font><div><font style="font-size: 10pt;
 font-family: tahoma;">The problem is that when I test this Z&nbsp;MySQL  Method&nbsp;it's working.</font></div><font style="font-size: 10pt; font-family: tahoma;"> </font><div><font style="font-size: 10pt; font-family: tahoma;">&nbsp;</font></div><font style="font-size: 10pt; font-family: tahoma;"> </font><div><font style="font-size: 10pt; font-family: tahoma;">Arguments:</font></div><font style="font-size: 10pt; font-family: tahoma;"> </font><div> <font style="font-size: 10pt; font-family: tahoma;">ID:int=1<br>voornaam:string=""<br>achternaam:string=""</font></div><font style="font-size: 10pt; font-family: tahoma;"> </font><div> <font style="font-size: 10pt; font-family: tahoma;">&nbsp;</font></div><font style="font-size: 10pt; font-family: tahoma;"> </font><div><font style="font-size: 10pt; font-family: tahoma;">Query:</font></div><font style="font-size: 10pt; font-family: tahoma;"> </font><div><font style="font-size: 10pt; font-family: tahoma;">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="border-left: 2px solid
 rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; 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> _______________________________________________<br>Zope maillist  -  Zope@zope.org<br>http://mail.zope.org/mailman/listinfo/zope<br>**   No cross posts or HTML encoding!  **<br>(Related lists - <br> http://mail.zope.org/mailman/listinfo/zope-announce<br> http://mail.zope.org/mailman/listinfo/zope-dev )<br></blockquote><br><p>&#32;__________________________________________________<br>Do You Yahoo!?<br>Tired of spam?  Yahoo! Mail has the best spam protection around <br>http://mail.yahoo.com