One way to do it: Have the form call a python script that reads the database and populates the form during the form rendering. The action of the form could be another python script, which will update the database via a ZSQL method. At the end of the script, call the form again, which will then get updated with the new information. -Scott -----Original Message----- From: garry saddington [mailto:garry@joydiv.fsnet.co.uk] Sent: Tuesday, June 10, 2003 12:16 PM To: zope@zope.org Subject: [Zope] Re:updating a form from itself I have a booking form whose contents are generated from a ZSQL method. The user then uses this form to place another booking. How can I send the new data to another ZSQL method to update the database and then change the same form to reflect the new booking and present this to the user as confirmation. I am OK on using variables in ZSQL it is the mechanics of the submit that i need to know. regards garry _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) The information contained in this email message may be privileged and is confidential information intended only for the use of the recipient or any employee or agent responsible for delivering it to the intended recipient. Any unauthorized use, distribution or copying of this information is strictly prohibited and may be unlawful. If you have received this communication in error, please notify the sender immediately and destroy the original message and all attachments from your electronic files.