At a quick glance this looks fine. Try displaying your form_ok variable right 
about the if block and see if it is actually a true value.

Use something like:
Value: '[% form_ok %]'<br>

If form_ok is '0' or '' then you know it's false, and your problem lies above.

You didn't give us the rest of the source of what's going on above that form_ok 
part so I couldn't really tell ya much more than that.

-- Josh

Wijnand Wiersma wrote:
Hi List,

I just started experimenting with template toolkit and I like it.

But now I am trying to use it in a registration form, but for some
reason the form is always printed. I use the following construction:
[% IF form_ok %]
  <h3>Registratie gelukt</h3>
[% ELSE %]
.... display the form

I am really sure the variable form_ok is set to a true value (1).

The whole source of the template:
http://wijnand.nedbsd.nl/templates/register

I am sure I am missing something obvious, but I just don't see what.

Regards,
Wijnand

_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates

!DSPAM:428a4ac1161691331610668!



_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to