Web Hosting Talk







View Full Version : cgi help needed


Xecutech
02-19-2003, 03:59 PM
I am updating a site that has cgi script already on it. It is a script that creates html page layout. I am getting horizontal rule on the page that I dont want. I think I found the line in the script for it:

my $toplisting;
foreach my $link (sort{$displays{$a**->{Pos** <=> $displays{$b**->{Pos**** keys %displays) {
my $tmp = $links{$link**;
my $l=&site_html_link_two(%{$tmp**) . qq|<hr width="100%">|;
$toplisting .= $l;
print $l if ($in{preview**);

What do I need to delete to get rid of the horizontal rule inserted? Please let me know exactly what to take out. Thank you in advance for any help I get.

luxline
02-19-2003, 07:18 PM
what the hell are all those ***'s doing in there?

I guess a quick and dirty way of doing this would be just to replace the
<hr width="100%">
with
<br>

or whatever you want to change it to.

thats horrible coding by the way.

Chas
02-20-2003, 12:34 AM
Start by changing this line:

my $l=&site_html_link_two(%{$tmp**) . qq|<hr width="100%">|;

to

my $l=&site_html_link_two(%{$tmp**);


If that doesn't work, can you post a link to the full script? I think some of the code you posted got filtered by the forum.

Regards,
Charlie

I left the ; off the end of the line, make sure you include that!

Xecutech
02-20-2003, 03:34 AM
Thanx for the help, I will look at it when I get home from work to see if it was filtered or not. I didn't write it, so I don't know what's in it, but considering I don't know perl or cgi, I changed the rest of it except this part.
Again, thank you.