Gangabass has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks,
I need to get params from HTML page which uses XHTML 1.1 Strict DTD. So there is no name attributes in input element but only id attributes.
<input type="text" id="password" />
But then i try to get params for that attributes i got nothing :-(
#!/usr/bin/perl use strict; use warnings; use CGI; my $query = new CGI; my @names = $query->param();
So i get only empty @names array. And
my $pass = $query->param("password");
did't work too.
But than i add to one input element name param i can see it in my cgi-script.
<input type="text" id="password" name="password" />
Is there a way to work with id params in CGI.pm?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: [CGI.pm] Working with forms which uses strict DTD
by moritz (Cardinal) on May 15, 2008 at 11:40 UTC | |
by Gangabass (Vicar) on May 15, 2008 at 11:49 UTC | |
|
Re: [CGI.pm] Working with forms which uses strict DTD
by Fletch (Bishop) on May 15, 2008 at 12:36 UTC |