Re: [Formulator-general] Help needed, inserting data in Mysql
Status: Beta
Brought to you by:
faassen
From: Denis <sp...@ca...> - 2001-10-09 06:18:16
|
Le Mon, Oct 08, 2001 at 09:15:47PM +0000, User pianota: > Hi all, Hi User > I have Formulator up and running, created a small test form > with 2 fields: form_test1 and form_test2. > I want to insert the results into a Mysql db, that has > corresponding fields test1 and test2, How do I do that? > Do I need to use a Z sql Method? Your form must call a method (Python Script or DTML Method) where you're going to validate your results, either one field at a time, either the whole form (see the doc, there's an example or grep the code to find the 'validate' methods). When you get your values from a 'validate' method, you may send them as parameters to a ZSQLMethod to store them in MySql. Have Fun. -- Denis FRERE P3B : Club Free-Pytho-Linuxien Caroloregien http://www.p3b.org Aragne : Internet - Reseaux - Formations http://www.aragne.com |