in reply to HTML Tag attribute problems with CGI.pm

Since you have imported the standard CGI routines into the main namespace, you do not need to instantiate a CGI object and thus can use the function oriented method. I have rewritten this with that in mind. Also, all attributes for functions now have a dash "-" in front of them. I think the code below is much closer to what you are looking for.

#!/usr/local/bin/perl -w use strict; use CGI qw/:standard/; # load standard CGI routines print header( -type => 'text/html' ), start_html( -title => 'PMI Human Resources', -author => 'berry-kelly@pmimail.com', -meta => { 'keywords' => 'PMI HR HumanResources' +, 'copyright' => 'copyright 2001 Kelly Be +rry' }, -style => { 'src' => 'style.css' }, -BGCOLOR => 'blue'), start_form( -method => 'post', -action => 'editpositions.pl' ), p( "What is the Job Title?" ), textfield( 'JobTitle', '', 30, 80), br, br, "What is the Date Listed?", textfield( 'DateListed', '', 30, 80), br, br, "What is the Job Description?", br, textarea('Description', '', 10, 80), submit, end_form, end_html;

Look ma, no HTML!

Cheers,
Ovid

Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.