in reply to CGI Table with checkboxes
If you're using CGI.pm, you just "print" the header, followed by the HTML as it should be passed along to the browser. So if you can construct the table with plain-old-HTML, just do the same using print statements from Perl (don't worry about the CGI.pm helper tags if they just complicate things).
But as for how to program the entire interactive process, that's not only a little more than I'd be prepared to write in a reply here, it's been covered at length. Look at Ovid's CGI course, for example, or CGI Programming with Perl (O'Reilly -- The mouse book, 2nd edition). Both are really old (Ovid's course is on the way-back machine), but that's because CGI itself is really old.
If you're just starting out this whole process, I would personally recommend not going the bare-CGI route, and instead, use a framework like Mojolicious. Create a Lite App. It's a lot simpler, in my opinion, than dealing with plain old CGI, and it can still work in a CGI environment. Eventually you'll find that you still need to learn the CGI fundamentals, but Mojolicious and other modern frameworks make it so much nicer. In the case of a "lite app", you simply set up hybrid controller/routes that populate templates. It's pretty slick.
Dave
|
|---|