[prog] perl woes...

Wolfgang Petzold petzold at villa-chaos.de
Sun Jun 1 16:16:24 EST 2003


It's me once again. Hi.

> First, I'm sort of following Jacinta's idea of data accuracy by staying
> away from client-side scripts - the user-base we're looking at includes
> minimal geeks, so the chances of odd things happening that might cause
> problems with the database have to be minimised.

That's a good argument, no doubt.

> Second, as Jacinta said, HTML::Template simply doesn't work this way. I
> can't seem to work out a way to use a here-document to populate a
> drop-down list from a database table of unknown size [...]

Anyway, you're not bound to here-documents, are you? You could print out
the forms by your (server-side) CGI script (other elements disabled, or
not shown at all), let the user make the first two choices, and then after
you know of the user's choices, do the following database requests and
print out the rest of the form accordingly. The only client-side thing is
that auto-submitting after changing the 2nd selection (or, any of the two,
just as you like).

Or did I misunderstand anything? Probably I don't know enough about
HTML::Template (yet)...

Wolfgang



More information about the Programming mailing list