[Zope] check input
Olaf Zanger
olaf.zanger@soli-con.com
Tue, 13 Feb 2001 07:44:31 +0100
hi there,
Dieter Maurer schrieb:
>
> Olaf Zanger writes:
> > Dies ist eine mehrteilige Nachricht im MIME-Format.
> > --------------4626B012037BD2BAE216AE84
> > Content-Type: text/plain; charset=us-ascii
> > Content-Transfer-Encoding: 7bit
> Have I not yet asked you not to send MIME messages?
> Then, I do it now. Although, I think, I did it already!
well, it is netscape so i unselected the vcard feature -- hope that helps you.
>
> > in a form the user needs tu input a optional float. it doesn't work with
> > name="weight:float" since this means float + required. what is the simple solution
> > for that?
> What should happen, when the user does not provide the float?
the ZSQL method has a dtml-if-statement. so it doesn't worry about a empty variable,
but about a nonexisting.
>
> * should the field be omitted?
no, it should be empty or valid
> Then try the ":ignore_empty" suffix.
the zsql-method gives me a error message because variable does not exist
where is that documented, i can't find it
>
> * do you want a default value in this case?
> Then try the ":default" suffix in an additional (hidden) form control
> to provide this default!
<input name:date:ignore_empty="min_date" value=""><input type="hidden"
name:default="min_date" value="">
it doesn't work, what is wrong. i don't understand the conzept either.
is there a way to have <input name:date:optional="min_date" value="">
thanks for help
olaf
--
soli-con Engineering Zanger
Dipl.-Ing. (FH) Olaf Marc Zanger
Lorrainestrasse 23
3013 Bern / Switzerland
Fon: +41-31-332 9782
Mob: +41-76-572 9782
mailto:info@soli-con.com
mailto:olaf.zanger@soli-con.com
http://www.soli-con.com