[Zope] how does dtml-if evaluate REQUEST variables?

Bruce Elrick belrick@home.com
Wed, 16 Feb 2000 16:45:34 -0700


Evan Simpson wrote:
> 
> ----- Original Message -----
> From: Ulrich Wisser <u.wisser@luna-park.de>
> > <dtml-if entryid>
> >
> > evalutes true when
> >
> > http://server/dtml.doc?entryid=0
> 
> That's because 'entryid' contains the non-empty string '0', which evaluates
> as true.  In order to evaluate false, it would need to be an integer.  Try:
> 
> http://server/dtml.doc?entryid:int=0
> 

As a slightly off-list-topic third-party followup, what html form would create
the above URL if dhtml.doc was the action of that form?

I'm having a problem that all my REQUEST variables are treated as strings,
even when they are single digits.  I would like to not have to coerce the
variables in the destination DTML Method, but rather have the form set the
type as above.

Thanks...
Bruce
--
Bruce Elrick, Ph.D.                       Saltus Technology Consulting Group
Personal: belrick@home.com                          IBM Certified Specialist
Business: belrick@saltus.ab.ca          ADSM, AIX Support, RS/6000 SP, HACMP