in reply to td() and Tr() inCGI.pm
print table( Tr( td('First Name:'), td(textfield(-name=>"first_name", -maxlength=>25, -size=>12, ), ), td('Last Name:'), td(textfield(-name=>"last_name", -maxlength=>25, -size=>12, ), ), ), Tr( td({-colspan=>2}, 'Address:', ), td({-colspan=>2}, textarea(-name=>"address", -rows=>10, -columns=>50, ), ), ), );
Note, I also put commas where they aren't specifically needed - over time, I've found that if you do this, when you come to amend the table, you don't have to worry about where they should be - extras at ends of elements are ignored.
.02
cLive ;-)
update - thanks for typo correction from jeffa
|
|---|