Is there any way I can ease my RPG controls on
numeric input fields? How about an input date field?
Also in this case, however, we recommend your CGI
performs the appropriate checks (some Web users
consider advantages ("pros") and disadvantages ("cons").
you may look at our page
A little further you'll find a link
(Validating form numeric fields)
to a CGI performing through
User errors are more quickly communicated through
in terms of faster diagnosis.
the size of your page, and this might result to
a slightly slower response, expecially in cases
were the user connects through a slow line.
Should you be interested, just download and install on your
AS/400 our library js2.
With regard to the checks your CGI should in any case,
here are our tips:
- If your CGI did initialize the input field,
on the next "call" it might just check whether
its new value is equal to initialized one.
If so, the field was not changed by the user.
- You might check numeric data through the
Mel's service program
If you like to use subprocedure c2n2
instead, please note that it
ignores slashes but treats dashes as
- Another method would be to output the date as three fields in the form:
month, day, and year with separators as constants between them.
- Another method would be to output the date twice: once in edited form (
modifiable) and once as pure numerics (as an input field).