QUESTION:

How can I get page to display the output?

SITUATION:

When user clicks the Submit button, the page refreshes, but the page
beneath the form is blank. If I use the browser's "reload" button,
output does display in page bottom, but always from the default viewmode
selection.

THE NITTY GRITTIES:

I have a template named viewdocsall.tmpl which calls itself.

The top of the template is a form (simplified here):

[% USE CGI %]

<form action=/tt2/docmgr/viewdocsall>
                          <INPUT TYPE="hidden" NAME="op" VALUE="DISPLAY">
  viewmode1 <INPUT TYPE="radio" NAME="viewmode" VALUE="filesys" CHECKED>
  viewmode2 <INPUT TYPE="radio" NAME="viewmode" VALUE="info">
  viewmode3 <INPUT TYPE="radio" NAME="viewmode" VALUE="INT">

  <INPUT TYPE="submit" VALUE="View">
</form>

The bottom of the page should display different sets of info based on
which viewmode has been selected:

[% IF viewmode == filesys %]

   # display viewmode1 stuff

[% END %]

[% IF viewmode == info %]

   # display viewmode2 stuff

[% END %]

et cetera

THE PLEA:

help, help!

Thanks for the insight,

/dennis




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

Reply via email to