Hi Guys I'm setting up an email subscription system and the problem that I have is that I not sure how to modify the cgi code so the the outputted HTML code looks like my site rather than he ugly default code?

If someone could let me know how I can change the cgi to make it look like this…
http://www.mason-williams.co.uk/mac/thanks.html

many Thanks,
dEVS!

Below is the code that I'm trying to change…

########## SUBSCRIBE NEW EMAILS ##########
sub subscribe {

unless ($INPUT{'address'}=~/\@/) {
&error_pretty("You entered an invalid email address, please go back and try again");
}

open(LIST,"$address_file");
@addresses=<LIST>;
close(LIST);

@add = grep{ /$INPUT{'address'}/i } @addresses;

if (@add) {
&error_pretty("The address you entered, <B>$INPUT{'address'}</B> is already in our mailing list");
}


open(LIST,">>$address_file") || &error(2);
print LIST "$INPUT{'address'}\n";
close(LIST);

print qq~
<table cellspacing=0 border=1 cellpadding =5 width=400>
<TR bgcolor="$table_head_bg"><TD>
<FONT SIZE="-1" FACE="Arial" color="$table_head_text"><B>Email successfully added!!
</B></FONT>
</TD></TR>
<TR bgcolor="$table_body_bg">
<TD>
<BR>
<FONT SIZE="-1" FACE="Arial" color="$table_body_text">
Thank you for your interest in Mason Williams<BR><BR>The address <B>$INPUT{'address'}</B> has been added to our mailing list.
<BR><BR>
</td></TR>
<TR bgcolor="$table_head_bg">
<TD>
<FONT SIZE="-1" FACE="arial" color="$table_head_text">
Return to <a href=$name_url>$name_home</a>
</FONT></TD></TR>

</TABLE>
~;

&Bottom;
exit;
}