in reply to cgi and javascript

Rant: You appear to be depending on JavaScript (you almost certainly don't need to as you can do most things server side), and depending on the browser creating a global variable reference to any element with an id or name (which boils down to assuming the user has Internet Explorer without the security settings ramped up).

As to getting the names of the form fields:

the param() method will return the parameter names as a list

... that's what is supposed to happen. You should probably reread the docs for CGI.pm.

Replies are listed 'Best First'.
Re^2: cgi and javascript
by Anonymous Monk on Jun 14, 2005 at 14:29 UTC
    About your rant: I know. I don't even like JS, but I am interfacing w/ an existing, proprietary webapp written in js, and I need to do some processing on some form data, then dump it on MySQL. Given that JS is client side, this is not possible. Hence perl. Thanks.