The first line prints the text <br> rather than printing the line break and on the first line it prints two form elements on the same line (when it should all be broken down on their own line like the rest of the script).
Can someone show me how to break the first line into two lines and remove the <br>?
#!/usr/bin/perl -w use CGI::Carp 'fatalsToBrowser'; use strict; use warnings; my $adv = "Advertise your script here!"; my $adminmail = "sulfericacid\@qwest.net"; use CGI qw/:standard/; print header, start_html(), start_form, "Email Address: ",textfield('usermail'),p, "Author: ",textfield('author'),p, "Distributor: ",textfield('distributor'),p, "Copyright: ",textfield('copyright'),p, "Abstract: ",textfield('abstract'),p, "Keywords: ",textfield('keywords'),p, "Description: ",textfield('description'),p, "Distribution: ",textfield('distribution'),p, "Robots: ",textfield('robots'),p, "Rating: ",textfield('rating'),p, "Language: ",textfield('language'),p, submit, end_form, hr; my $abstract = param('abstract'); my $usermail = param('usermail'); my $author = param('author'); my $distributor = param('distributor'); my $keywords = param('keywords'); my $description = param('description'); my $distribution = param('distribution'); my $robots = param('robots'); my $rating = param('rating'); my $language = param('language'); my $copyright = param('copyright'); my $tags =''; if (param('abstract') ne "") { $tags .= qq(<meta name="abstract" content="$abstract"><br>) +; } if (param('author') ne "") { $tags .= qq(<meta name="author" content="$author"><br>); } if (param('distributor') ne "") { $tags .= qq(<meta name="distributor" content="$distributor"> +;<br>); } if (param('copyright') ne "") { $tags .= qq(<meta name="copyright" content="$copyright"><br +>); } if (param('keywords') ne "") { $tags .= qq(<meta name="keywords" content="$keywords"><br>) +; } if (param('description') ne "") { $tags .= qq(<meta name="description" content="$description"> +;<br>); } $tags .= qq(<meta name="generator" content="$adv"><br>); if (param('robots') ne "") { $tags .= qq(<meta name="robots" content="$robots"><br>); } if (param('language') ne "") { $tags .= qq(<meta name="language" content="$language"><br>) +; } if (param('distribution') ne "") { $tags .= qq(<meta name="distribution" content="$distribution"& +gt;<br>); } if (param('rating') ne "") { $tags .= qq(<meta name="rating" content="$rating"><br>); } $tags =~ s/</</; $tags =~ s/>/>/; $tags =~ s/<br>//; print $tags; print hr; print end_html();
In reply to CGI aligning by sulfericacid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |