[Zope] Validating Form Data

Andrés Sánchez Gómez asg@rakar.com
Tue, 05 Mar 2002 15:46:32 -0300


You've try to print <dtml-var age> in the "insertResume" method?
May be the problem is not in the form-to-insertResume step.
How do you call the age (and the other form vars) from the 
SQLinsertResume and sendmail methods?

Andrés Sánchez Gómez
EcMess.com

Mike Tran wrote:

>Well, the "insertResume" method call on another method to Insert the dat=
a 
>into a database <dtml-call SQLinsertResume> and uses <sendmail> to notif=
y the 
>site adminstrator. 
>
>I did not have any problems with Jscript inside of Zope.  My problem was=
 form 
>data did not get passed to "insertResume".  Inside the SQLinsertResume a=
nd 
>sendmail I have variables referencing the form.  Zope gave me an error 
>because those form data was not passed to "insertResume".
>
>Error Type: KeyError
>Error Value: age
>
>
>On Tue 05 Mar 02 10:34, you wrote:
>
>>I realise that you have some answers for your question. But I belive yo=
u
>>are not looking for a Zope form validating solution, and you want to fi=
x
>>what you've made in Javascript.
>>Esentialy, there's no problem with javascript inside Zope, and there's
>>no problem with javascript form validating in zope.
>>I've copy-paste your form and made a Test "insertResume" method and hav=
e
>>no problem with it.
>>Keep tying or give us more information (insertResume method for example=
)
>>
>>Andrés Sánchez Gómez
>>EcMess.com
>>
>