[Zope] What am I doing wrong?
Paul Everitt
Paul@digicool.com
Thu, 29 Apr 1999 11:46:53 -0400
Note: Zope 1.11 revamps the error messages, even including tips for
well-known problems! In this case, the error message would have said
the error and indicated that the HTML source contained more info.
Everybody, when you start looking at 1.11, _please_ give us feedback on
how to improve this. Usability is becoming more important for us.
--Paul
> -----Original Message-----
> From: Jim Washington [mailto:jwashin@vt.edu]
> Sent: Thursday, April 29, 1999 9:02 AM
> To: Tom Deprez; zope@zope.org
> Subject: Re: [Zope] What am I doing wrong?
>
>
> Tom Deprez wrote:
>
> If you view the source of the page with the error, you will see
> something like
>
> name error: age
>
> This means that there is no variable being passed to the
> CheckInput page
> called age.
>
> In the input page, there is a simple HTML error that can be fixed.
>
> <input age="age:int" type="text">
>
> should be <input name="age:int" type="text">
>
> The same problem exists with the input for humor.
>
> With these fixes, it works like a charm.
>
> -- Jim Washington
>
> >
> > Help!
> >
> > If I press submit, I always get an error. I tried several things for
> > checking the age... but none works! I guess it's again a
> silly problem. But
> > I can't find it. Help! Thanks.
> >
> > <!--#var standard_html_header-->
> > <h2><!--#var title_or_id--></h2>
> > <p>
> >
> > <form action="Examp2_CheckInput" method="get">
> >
> > <table>
> > <tr>
> > <td>
> > Name
> > </td>
> > <td>
> > <input name="name:string" type="text">
> > </td>
> > </tr>
> >
> > <tr>
> > <td>
> > Age
> > </td>
> > <td>
> > <input age="age:int" type="text">
> > </td>
> > </tr>
> >
> > <tr>
> > <td>
> > Humour
> > </td>
> > <td>
> > <input humour="humour:boolean" type="checkbox">
> > </td>
> > </tr>
> > </table>
> >
> > <input type="submit" value=" Submit ">
> >
> > </form>
> >
> > </p>
> > <!--#var standard_html_footer-->
> >
> > Examp2_CheckInput
> > ------------------
> >
> > <!--#var standard_html_header-->
> > <h2><!--#var title_or_id--></h2>
> > <p>
> >
> > <!--Check for age-->
> > <hr>
> > <p>
> > <!--#if "0 <= age <=120"-->
> > Hi <!--#var name-->! <br>
> > you are <!--#var age--> years old <br>
> > <!--#if "humour"-->
> > Great day isn't it?
> > <!--#else-->
> > Did you had a bad day?
> > <!--#/if-->
> > <!--#else-->
> > your age (<!--#var age-->) is ridiculous, it should be
> between 0 and 120!<hr>
> > <a href="Examp2_form" Please fill in the form correctly>
> > <!--#/if-->
> > </p>
> > <hr>
> > <p>
> >
> > </p>
> > <!--#var standard_html_footer-->
> >
> > Tom.
> >
> > _______________________________________________
> > Zope maillist - Zope@zope.org
> > http://www.zope.org/mailman/listinfo/zope
> >
> > (For developer-specific issues, use the companion list,
> > zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://www.zope.org/mailman/listinfo/zope
>
> (For developer-specific issues, use the companion list,
> zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )
>