Hello, Here is Hungary :) My question: 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 to some example, it would be very good. Thanks, -- Amon Tamas sajt@amon.hu
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.
participants (2)
-
Oleg Broytmann -
Tamas Amon