[Zope] (no subject)

Itamar Shtull-Trauring itamars@ibm.net
Tue, 02 May 2000 13:45:41 +0300


Dragomir Denev wrote:
html' I have:
> 
> <dtml-if "REQUEST.has_key('SUBMIT')">   // this is the submit button of the form
>                                         // the action of the form is 'index_html'  itself
>       <dtml-call insertNewItem>         // this is a ZSQL method
>  
> -here is the form-
> 
> The point is that I want the method to be executed only when the form is submitted.
> When first displayed nothing unusual happens (the REQUEST doesn't have 'SUBMIT').
> But when I submit the form than this is what I get:
> 
> Error Type: ValueError
> Error Value: Invalid Header (0):
> 
> Does anyone know what is wrong with this (or with Zope)?

Try getting rid of any characters or white space before the <html> at the
beginning of your page:

<dtml-if "REQUEST.has_key('SUBMIT')"><dtml-call
insertNewItem></dtml-if><html>
...
..

-- 
Itamar S.T.  itamars@ibm.net