in reply to CGI aligning

Your script is printing <br> because you explicitly told it to with these two lines:

$tags =~ s/</&lt;/; $tags =~ s/>/&gt;/;

And then, right after that you tried to remove the breaks, but s/<br>// isn't going to match anything, because you just removed all the < and > characters from your string.


We're not surrounded, we're in a target-rich environment!

Replies are listed 'Best First'.
Re: Re: CGI aligning
by sulfericacid (Deacon) on Apr 03, 2003 at 06:34 UTC
    Yup, that was the problem. I should have taken out the substitutions but I forgot about it (I was originally using <'s and >'s so I actually had to substitute them). Why would the error only occur on the first line though? The same subsitutions were performed for all the parameters but only one <br> was printing and only the first two tags were on the same line.

    Thanks!

    "Age is nothing more than an inaccurate number bestowed upon us at birth as just another means for others to judge and classify us"

    sulfericacid