Jun 18, 2010, 10:24 AM
OK, I understand.
The shown conditional lines I would print line by line as before. CGI.pm is not able to do those conditionals.
And it's not wrong or bad to print line by line. Don't feel bad to do it in that way.
CGI.pm is not a programming roboter, it's only a tool to print html tags with some less source code and perfect headers/meta's etc.
For example: I have a script where I need serveral <input type=hidden name=samename value=differentvalue> Tags to build a array in the form.
CGI.pm does not exactly takes the right value, it takes instead the value of the field bevor created. I don't know why it is, I fear it's a bug. And so I'm not ashamed to print the line manually.
Edit additional: It's not core competence of CGI.pm to create JS in all appreciative forms :)
(This post was edited by Bianca on Jun 18, 2010, 10:28 AM)