No such thing as a small change | |
PerlMonks |
HTML Fieldset messing up self referencing CGI?by Popcorn Dave (Abbot) |
on Feb 20, 2008 at 22:15 UTC ( [id://669120]=perlquestion: print w/replies, xml ) | Need Help?? |
Popcorn Dave has asked for the wisdom of the Perl Monks concerning the following question:
Fellow monks,
I've hit a wall with this problem and I'm not sure if it's something I've inadvertently done or if CGI.pm is having a problem with generating the HTML code. I'm generating a HTML form using a combination of OO CGI and print statements because as far as I can tell CGI.pm doesn't support the fieldset and label tags as of yet unless I use CGI::FormBuilder. As I'm trying to do my error checking right in Perl I'm not sure that using that module is the way to go since it does the error checking in JavaScript and I'm just setting CSS options to denote unfilled required fields. Given this pared down code snippet:
when I put in just the first paramter, it returns the HTML as I would expect, but only the first part of a possible multi part paramter. For example, if I put blah blah in the name field, after the submit just the first blah is returned in the field. However Data::Dumper shows that blah blah is passed as a parameter. Anybody have a clue why it seems to be clipping the data there? Update: As <a href="http://www.perlmonks.org/?node_id=522408>olus pointed out I didn't have the double quotes around the value, but it turns out that I didn't need the value there anyway. Apparently the input id and name pieces takes care of that. If I'm incorrect in that reasoning, please let me know.
Revolution. Today, 3 O'Clock. Meet behind the monkey bars. I would love to change the world, but they won't give me the source code
Back to
Seekers of Perl Wisdom
|
|