[Zope] :int question

Oleg Broytmann Oleg Broytmann <phd@phd.fep.ru>
Tue, 5 Jun 2001 13:46:18 +0400 (MSD)


On Tue, 5 Jun 2001, Tamas Amon wrote:
> I have a form, something like this:
> <form>
> <input type="text" name="name:int">
> <input type="submit">
> </form>
>
> And, when somebody write somethimg, what is not an integer he get a zope
> error message. How I can handle easily this problem? If you have a link

   Easily - you cannot. Hard ways:

1. On client side validate the form using Javascript.

2. Stop using :int and on server side validate the form and make your own
error message.

Oleg.
----
     Oleg Broytmann     http://www.zope.org/Members/phd/     phd@phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.